summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-30 23:47:44 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-30 23:47:44 +0000
commitb0f87c48cb1644573d272066ed86385d9a6c28d5 (patch)
tree1712a4dad35f004eeaf9875ead6ab020d1945a9b /clang/lib/Analysis/BugReporter.cpp
parent0ae9ed7fabc1465e4cc017ad2c014cfd7290a58d (diff)
downloadbcm5719-llvm-b0f87c48cb1644573d272066ed86385d9a6c28d5.tar.gz
bcm5719-llvm-b0f87c48cb1644573d272066ed86385d9a6c28d5.zip
added preliminary diagnostics in scan-build results to denote whether
a CF memory leak occurred with GC enabled, etc. llvm-svn: 50507
Diffstat (limited to 'clang/lib/Analysis/BugReporter.cpp')
-rw-r--r--clang/lib/Analysis/BugReporter.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp
index d00d329e956..465acf03f3c 100644
--- a/clang/lib/Analysis/BugReporter.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud