Skip to content

Commit

Permalink
SVF code formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleisui committed Jul 27, 2023
1 parent 6dca909 commit be87f78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions svf/include/CFL/CFLGraphBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
namespace SVF
{

enum class BuildDirection {
plain,
bidirection,
enum class BuildDirection
{
plain,
bidirection,
};

/**
Expand Down
8 changes: 4 additions & 4 deletions svf/lib/CFL/CFLGraphBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ CFLGraph* CFLGraphBuilder::build(GenericGraph<N,E>* graph, GrammarBase *grammar,
CFLGraph* CFLGraphBuilder::build(std::string fileName, GrammarBase *grammar, BuildDirection direction)
{
bool isDot = (fileName.rfind(".dot") == fileName.length() - std::string(".dot").length());
if (isDot)
if (isDot)
return buildFromDot(fileName, grammar, direction);

bool isJson = (fileName.rfind(".json") == fileName.length() - std::string(".json").length());
if (isJson)
bool isJson = (fileName.rfind(".json") == fileName.length() - std::string(".json").length());
if (isJson)
return buildFromJson(fileName, grammar, direction);

return buildFromText(fileName, grammar, direction);
}

Expand Down

0 comments on commit be87f78

Please sign in to comment.