diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-07-16 18:27:27 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-07-16 18:27:27 +0000 |
commit | f59ba9f5452fd550bf23463c0126e08a301f2aaf (patch) | |
tree | 45e24d51b534d4404a7199cc438aa85e102040df /clang/lib/StaticAnalyzer/Core/BugReporter.cpp | |
parent | 18ba5b2e0f0add4931b22332ba54f5cdc4095012 (diff) | |
download | bcm5719-llvm-f59ba9f5452fd550bf23463c0126e08a301f2aaf.tar.gz bcm5719-llvm-f59ba9f5452fd550bf23463c0126e08a301f2aaf.zip |
Fix formatting. No functional change.
llvm-svn: 186437
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/BugReporter.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp index d5636da9692..d8d54fdba5b 100644 --- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -1592,8 +1592,8 @@ static const Stmt *getTerminatorCondition(const CFGBlock *B) { return S; } -static const char *const StrEnteringLoop = "Entering loop body"; -static const char *const StrLoopBodyZero = "Loop body executed 0 times"; +static const char StrEnteringLoop[] = "Entering loop body"; +static const char StrLoopBodyZero[] = "Loop body executed 0 times"; static bool GenerateAlternateExtensivePathDiagnostic(PathDiagnostic& PD, @@ -1794,8 +1794,7 @@ GenerateAlternateExtensivePathDiagnostic(PathDiagnostic& PD, if (!IsInLoopBody) { str = StrLoopBodyZero; } - } - else { + } else { str = StrEnteringLoop; } @@ -1808,9 +1807,8 @@ GenerateAlternateExtensivePathDiagnostic(PathDiagnostic& PD, PE->getLocation(), PDB.LC); PD.getActivePath().push_front(PE); } - } - else if (isa<BreakStmt>(Term) || isa<ContinueStmt>(Term) || - isa<GotoStmt>(Term)) { + } else if (isa<BreakStmt>(Term) || isa<ContinueStmt>(Term) || + isa<GotoStmt>(Term)) { PathDiagnosticLocation L(Term, SM, PDB.LC); addEdgeToPath(PD.getActivePath(), PrevLoc, L, PDB.LC); } |