diff options
author | George Karpenkov <ekarpenkov@apple.com> | 2018-09-21 20:35:39 +0000 |
---|---|---|
committer | George Karpenkov <ekarpenkov@apple.com> | 2018-09-21 20:35:39 +0000 |
commit | e7f0cee909c8d444beb75ea252c279715a062a26 (patch) | |
tree | ced5c3738ef95a709bb531b68ec190cf3bde79ef /lib/StaticAnalyzer/Core/BugReporter.cpp | |
parent | 376881c98e8cd750a0821948af1712a022acf14b (diff) | |
download | clang-e7f0cee909c8d444beb75ea252c279715a062a26.tar.gz |
[analyzer] [NFC] Dead code removal
Differential Revision: https://reviews.llvm.org/D52269
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342765 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/BugReporter.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index c703294eb9..483fb50d00 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -2023,8 +2023,6 @@ static std::unique_ptr<PathDiagnostic> generatePathDiagnosticForConsumer( void BugType::anchor() {} -void BugType::FlushReports(BugReporter &BR) {} - void BuiltinBug::anchor() {} //===----------------------------------------------------------------------===// @@ -2253,14 +2251,6 @@ void BugReporter::FlushReports() { if (BugTypes.isEmpty()) return; - // First flush the warnings for each BugType. This may end up creating new - // warnings and new BugTypes. - // FIXME: Only NSErrorChecker needs BugType's FlushReports. - // Turn NSErrorChecker into a proper checker and remove this. - SmallVector<const BugType *, 16> bugTypes(BugTypes.begin(), BugTypes.end()); - for (const auto I : bugTypes) - const_cast<BugType*>(I)->FlushReports(*this); - // We need to flush reports in deterministic order to ensure the order // of the reports is consistent between runs. for (const auto EQ : EQClassesVector) |