r186437 - Fix formatting. No functional change.
Craig Topper
craig.topper at gmail.com
Tue Jul 16 11:27:27 PDT 2013
Author: ctopper
Date: Tue Jul 16 13:27:27 2013
New Revision: 186437
URL: http://llvm.org/viewvc/llvm-project?rev=186437&view=rev
Log:
Fix formatting. No functional change.
Modified:
cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp
Modified: cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp?rev=186437&r1=186436&r2=186437&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp Tue Jul 16 13:27:27 2013
@@ -1592,8 +1592,8 @@ static const Stmt *getTerminatorConditio
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
if (!IsInLoopBody) {
str = StrLoopBodyZero;
}
- }
- else {
+ } else {
str = StrEnteringLoop;
}
@@ -1808,9 +1807,8 @@ GenerateAlternateExtensivePathDiagnostic
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);
}
More information about the cfe-commits
mailing list