diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2019-04-19 20:23:29 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2019-04-19 20:23:29 +0000 |
commit | 0a7dd5a2a4d5dd6c07660e261a8de88ceee5df56 (patch) | |
tree | f66180a927e03a3ad7cd7fbce9b1843daf75515c /clang/lib/StaticAnalyzer/Core/BugReporter.cpp | |
parent | 2436237895b70ed44cf256f67eb2f74e147eb559 (diff) | |
download | bcm5719-llvm-0a7dd5a2a4d5dd6c07660e261a8de88ceee5df56.tar.gz bcm5719-llvm-0a7dd5a2a4d5dd6c07660e261a8de88ceee5df56.zip |
Reapply "[analyzer] Introduce a simplified API for adding custom path notes."
This reapplies commit r357323, fixing memory leak found by LSan.
Differential Revision: https://reviews.llvm.org/D58367
llvm-svn: 358781
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/BugReporter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp index 1cea44f1d85..168050955f2 100644 --- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -2611,6 +2611,7 @@ std::pair<BugReport*, std::unique_ptr<VisitorsDiagnosticsTy>> findValidReport( R->addVisitor(llvm::make_unique<NilReceiverBRVisitor>()); R->addVisitor(llvm::make_unique<ConditionBRVisitor>()); R->addVisitor(llvm::make_unique<CXXSelfAssignmentBRVisitor>()); + R->addVisitor(llvm::make_unique<TagVisitor>()); BugReporterContext BRC(Reporter, ErrorGraph.BackMap); |