]> granicus.if.org Git - clang/commit
[Analyzer] Replace `CXXSelfAssignmentBRVisitor` with `NoteTags`
authorAdam Balogh <adam.balogh@ericsson.com>
Tue, 28 May 2019 13:07:09 +0000 (13:07 +0000)
committerAdam Balogh <adam.balogh@ericsson.com>
Tue, 28 May 2019 13:07:09 +0000 (13:07 +0000)
commit0bdda4905c53530ef8c1c66af7cf20b534cf20f3
tree7caf7bd40ce86af968f2bd6c3ebf5f9729314f84
parent4e88d5da2df1a93f4971d459e1c52b7b98b21a92
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361818 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
lib/StaticAnalyzer/Checkers/CXXSelfAssignmentChecker.cpp
lib/StaticAnalyzer/Core/BugReporter.cpp
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
lib/StaticAnalyzer/Core/PathDiagnostic.cpp