summaryrefslogtreecommitdiff
path: root/flowgraph.cpp
diff options
context:
space:
mode:
authorKyleMiles <krm504@nyu.edu>2022-01-27 22:43:28 -0500
committerKyleMiles <krm504@nyu.edu>2022-01-28 00:24:06 -0500
commit6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 (patch)
treedace4156d03148bcaf02df138ab4e0d93e61bc6f /flowgraph.cpp
parent519c9db22367f2659d1a54599fab47e6313be06e (diff)
Format All Files
Diffstat (limited to 'flowgraph.cpp')
-rw-r--r--flowgraph.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/flowgraph.cpp b/flowgraph.cpp
index f4164110..204e3d19 100644
--- a/flowgraph.cpp
+++ b/flowgraph.cpp
@@ -24,8 +24,8 @@ using namespace BinaryNinja;
using namespace std;
-FlowGraphLayoutRequest::FlowGraphLayoutRequest(FlowGraph* graph, const std::function<void()>& completeFunc):
- m_completeFunc(completeFunc)
+FlowGraphLayoutRequest::FlowGraphLayoutRequest(FlowGraph* graph, const std::function<void()>& completeFunc) :
+ m_completeFunc(completeFunc)
{
m_object = BNStartFlowGraphLayout(graph->GetObject(), this, CompleteCallback);
}
@@ -65,7 +65,8 @@ void FlowGraphLayoutRequest::Abort()
// Must clear the callback with the core before clearing our own function object, as until it
// is cleared in the core it can be called at any time from a different thread.
BNAbortFlowGraphLayoutRequest(m_object);
- m_completeFunc = []() {};
+ m_completeFunc = []() {
+ };
}
@@ -141,14 +142,10 @@ void FlowGraph::PrepareForLayout()
}
-void FlowGraph::PopulateNodes()
-{
-}
+void FlowGraph::PopulateNodes() {}
-void FlowGraph::CompleteLayout()
-{
-}
+void FlowGraph::CompleteLayout() {}
Ref<Function> FlowGraph::GetFunction() const
@@ -410,7 +407,7 @@ bool FlowGraph::IsOptionSet(BNFlowGraphOption option)
}
-CoreFlowGraph::CoreFlowGraph(BNFlowGraph* graph): FlowGraph(graph)
+CoreFlowGraph::CoreFlowGraph(BNFlowGraph* graph) : FlowGraph(graph)
{
m_queryMode = BNFlowGraphUpdateQueryMode(GetObject());
}