]> granicus.if.org Git - clang/commitdiff
Fix formatting. No functional change.
authorCraig Topper <craig.topper@gmail.com>
Tue, 16 Jul 2013 18:27:27 +0000 (18:27 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 16 Jul 2013 18:27:27 +0000 (18:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186437 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/BugReporter.cpp

index d5636da9692bfc90d147f2b18dc58803bcfd3ee2..d8d54fdba5b56852b53d1c59d0f688e308a6e030 100644 (file)
@@ -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);
           }