summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-07-16 05:03:10 +0000
committerCraig Topper <craig.topper@gmail.com>2013-07-16 05:03:10 +0000
commit694ddc73ea9a09c4211f9a29a1463db2f87e7ebb (patch)
tree873fa0cd968e79c37e53619a06395f76e32f0c74
parent559037302451a0b289eb14a6b70cee5fc66a07ea (diff)
downloadbcm5719-llvm-694ddc73ea9a09c4211f9a29a1463db2f87e7ebb.tar.gz
bcm5719-llvm-694ddc73ea9a09c4211f9a29a1463db2f87e7ebb.zip
Add 'const' qualifiers to static const char* variables.
llvm-svn: 186383
-rw-r--r--clang/lib/StaticAnalyzer/Core/BugReporter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
index 912d5c501d6..d5636da9692 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 *StrEnteringLoop = "Entering loop body";
-static const char *StrLoopBodyZero = "Loop body executed 0 times";
+static const char *const StrEnteringLoop = "Entering loop body";
+static const char *const StrLoopBodyZero = "Loop body executed 0 times";
static bool
GenerateAlternateExtensivePathDiagnostic(PathDiagnostic& PD,
OpenPOWER on IntegriCloud