r186383 - Add 'const' qualifiers to static const char* variables.

Craig Topper craig.topper at gmail.com
Mon Jul 15 22:03:10 PDT 2013


Author: ctopper
Date: Tue Jul 16 00:03:10 2013
New Revision: 186383

URL: http://llvm.org/viewvc/llvm-project?rev=186383&view=rev
Log:
Add 'const' qualifiers to static const char* variables.

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=186383&r1=186382&r2=186383&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/BugReporter.cpp Tue Jul 16 00:03:10 2013
@@ -1592,8 +1592,8 @@ static const Stmt *getTerminatorConditio
   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,





More information about the cfe-commits mailing list