From: Craig Topper Date: Tue, 16 Jul 2013 05:03:10 +0000 (+0000) Subject: Add 'const' qualifiers to static const char* variables. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6afc66dc25f9b28d129f8bc842d43af0b0c71196;p=clang Add 'const' qualifiers to static const char* variables. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186383 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index 912d5c501d..d5636da969 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 *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,