Skip to content

Commit

Permalink
SVF code formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleisui committed Oct 11, 2024
1 parent 5db169c commit 28ff9f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions svf/lib/Graphs/CallGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ CallGraph::CallGraph(CGEK k): kind(k)
}

/// Copy constructor
CallGraph::CallGraph(const CallGraph& other) {
CallGraph::CallGraph(const CallGraph& other)
{
callGraphNodeNum = other.callGraphNodeNum;
numOfResolvedIndCallEdge = 0;
kind = other.kind;
Expand Down Expand Up @@ -154,7 +155,8 @@ void CallGraph::destroy()
/*!
* Add call graph node
*/
void CallGraph::addCallGraphNode(const SVFFunction* fun) {
void CallGraph::addCallGraphNode(const SVFFunction* fun)
{
NodeID id = callGraphNodeNum;
CallGraphNode *callGraphNode = new CallGraphNode(id, fun);
addGNode(id, callGraphNode);
Expand Down
3 changes: 2 additions & 1 deletion svf/lib/Util/CallGraphBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ using namespace SVFUtil;
CallGraph* CallGraphBuilder::buildSVFIRCallGraph(SVFModule* svfModule)
{
CallGraph* callgraph = new CallGraph();
for (const SVFFunction* svfFunc: svfModule->getFunctionSet()){
for (const SVFFunction* svfFunc: svfModule->getFunctionSet())
{
callgraph->addCallGraphNode(svfFunc);
}

Expand Down

0 comments on commit 28ff9f4

Please sign in to comment.