[analyzer][NFC] Make sure that the BugReport is not modified during the construction...
authorKristof Umann <dkszelethus@gmail.com>
Tue, 13 Aug 2019 22:03:08 +0000 (22:03 +0000)
committerKristof Umann <dkszelethus@gmail.com>
Tue, 13 Aug 2019 22:03:08 +0000 (22:03 +0000)
commite1117addd664c3b52b4a8b7be8bdd678d42f264c
tree1f25bac12fc96e6af1f643f172f03ee3afb274c2
parent6c97f8898685d5d07f14e859b21fad1ffe5c39c2
[analyzer][NFC] Make sure that the BugReport is not modified during the construction of non-visitor pieces

I feel this is kinda important, because in a followup patch I'm adding different
kinds of interestingness, and propagating the correct kind in BugReporter.cpp is
just one less thing to worry about.

Differential Revision: https://reviews.llvm.org/D65578

llvm-svn: 368755
clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.h
clang/lib/StaticAnalyzer/Core/BugReporter.cpp
clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp