diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-30 23:47:44 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-30 23:47:44 +0000 |
commit | 072192bcbb05a0fee7ec3061750b27e8d2004952 (patch) | |
tree | 37048b412bd73992a50738e0b948108bf453bba5 /lib/Analysis/BugReporter.cpp | |
parent | 6b6289848e215ff12d4d54fe0602d3371db52788 (diff) |
added preliminary diagnostics in scan-build results to denote whether
a CF memory leak occurred with GC enabled, etc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-rw-r--r-- | lib/Analysis/BugReporter.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index d00d329e95..465acf03f3 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -448,6 +448,13 @@ void BugReporter::EmitWarning(BugReport& R) { llvm::OwningPtr<PathDiagnostic> D(new PathDiagnostic(R.getName())); GeneratePathDiagnostic(*D.get(), R); + + // Get the meta data. + + std::pair<const char**, const char**> Meta = R.getExtraDescriptiveText(); + + for (const char** s = Meta.first; s != Meta.second; ++s) + D->addMeta(*s); // Emit a full diagnostic for the path if we have a PathDiagnosticClient. |