From: Craig Topper Date: Tue, 16 Jul 2013 18:27:27 +0000 (+0000) Subject: Fix formatting. No functional change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a9350f2411926f4faaeb2ce7d7a9bc1f27751e9;p=clang Fix formatting. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186437 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index d5636da969..d8d54fdba5 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/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(Term) || isa(Term) || - isa(Term)) { + } else if (isa(Term) || isa(Term) || + isa(Term)) { PathDiagnosticLocation L(Term, SM, PDB.LC); addEdgeToPath(PD.getActivePath(), PrevLoc, L, PDB.LC); }