diff options
author | Adam Balogh <adam.balogh@ericsson.com> | 2019-05-28 13:07:09 +0000 |
---|---|---|
committer | Adam Balogh <adam.balogh@ericsson.com> | 2019-05-28 13:07:09 +0000 |
commit | 9ed4b316d13f887b64bb4c129d462374e208d29e (patch) | |
tree | 828fe03672fd499551db916906257d54260de141 /clang/lib/StaticAnalyzer/Core/BugReporter.cpp | |
parent | c0f43bee37f94df5384378d5ed99bd89c767871c (diff) | |
download | bcm5719-llvm-9ed4b316d13f887b64bb4c129d462374e208d29e.tar.gz bcm5719-llvm-9ed4b316d13f887b64bb4c129d462374e208d29e.zip |
[Analyzer] Replace `CXXSelfAssignmentBRVisitor` with `NoteTags`
The `cplusplus.SelfAssignment` checker has a visitor that is added
to every `BugReport` to mark the to branch of the self assignment
operator with e.g. `rhs == *this` and `rhs != *this`. With the new
`NoteTag` feature this visitor is not needed anymore. Instead the
checker itself marks the two branches using the `NoteTag`s.
Differential Revision: https://reviews.llvm.org/D62479
llvm-svn: 361818
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/BugReporter.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp index cc93675344e..738ad9a062f 100644 --- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -2610,7 +2610,6 @@ std::pair<BugReport*, std::unique_ptr<VisitorsDiagnosticsTy>> findValidReport( // Register additional node visitors. 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); |