diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-05-10 05:11:21 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-05-10 05:11:21 +0000 |
commit | 3978f7972dabb33fafc9f081e12f326103c988e0 (patch) | |
tree | 2d23fc511391d892c148f37716edcdedbc96f9ba /clang/lib/Analysis/GRExprEngineInternalChecks.cpp | |
parent | 1e0d6a59579aad3451e99c2c7d143f0bc03574ed (diff) | |
download | bcm5719-llvm-3978f7972dabb33fafc9f081e12f326103c988e0.tar.gz bcm5719-llvm-3978f7972dabb33fafc9f081e12f326103c988e0.zip |
analyzer:
- Improve -autorelease diagnostics.
- Improve VLA diagnostics.
- Use "short description" for bug when outputting to TextDiagnostics
llvm-svn: 71383
Diffstat (limited to 'clang/lib/Analysis/GRExprEngineInternalChecks.cpp')
-rw-r--r-- | clang/lib/Analysis/GRExprEngineInternalChecks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/GRExprEngineInternalChecks.cpp b/clang/lib/Analysis/GRExprEngineInternalChecks.cpp index cca1c68cf7f..8f37ad2d658 100644 --- a/clang/lib/Analysis/GRExprEngineInternalChecks.cpp +++ b/clang/lib/Analysis/GRExprEngineInternalChecks.cpp @@ -453,8 +453,8 @@ public: std::string shortBuf; llvm::raw_string_ostream os_short(shortBuf); os_short << "Variable-length array '" << VD->getNameAsString() << "' " - << (isUndefined ? " garbage value for array size" - : " has zero elements (undefined behavior)"); + << (isUndefined ? "garbage value for array size" + : "has zero elements (undefined behavior)"); RangedBugReport *report = new RangedBugReport(*this, os_short.str().c_str(), |