diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2019-08-20 21:41:20 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2019-08-20 21:41:20 +0000 |
commit | 9e698f2c0f3e12d20d0592a0e8aff5142272fa22 (patch) | |
tree | 819ba613e0c16e4591cc702236d793bd94b0ac89 /include | |
parent | b9fc39969b7062348031ed0474059557bb9f6da3 (diff) | |
download | clang-9e698f2c0f3e12d20d0592a0e8aff5142272fa22.tar.gz |
[analyzer] NFC: Remove the BugTypes set from BugReporter.
Its only purpose was to avoid a bug that's caused by
making a virtual call in BugReporter's destructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369451 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h index 3e9749c0d2..8b986f7f6e 100644 --- a/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h +++ b/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h @@ -408,11 +408,6 @@ public: enum Kind { BasicBRKind, PathSensitiveBRKind }; private: - using BugTypesTy = llvm::ImmutableSet<BugType *>; - - BugTypesTy::Factory F; - BugTypesTy BugTypes; - const Kind kind; BugReporterData& D; @@ -433,11 +428,10 @@ private: protected: BugReporter(BugReporterData& d, Kind k) - : BugTypes(F.getEmptySet()), kind(k), D(d) {} + : kind(k), D(d) {} public: - BugReporter(BugReporterData& d) - : BugTypes(F.getEmptySet()), kind(BasicBRKind), D(d) {} + BugReporter(BugReporterData &d) : kind(BasicBRKind), D(d) {} virtual ~BugReporter(); /// Generate and flush diagnostics for all bug reports. @@ -453,11 +447,6 @@ public: return D.getPathDiagnosticConsumers(); } - /// Iterator over the set of BugTypes tracked by the BugReporter. - using iterator = BugTypesTy::iterator; - iterator begin() { return BugTypes.begin(); } - iterator end() { return BugTypes.end(); } - /// Iterator over the set of BugReports tracked by the BugReporter. using EQClasses_iterator = llvm::FoldingSet<BugReportEquivClass>::iterator; EQClasses_iterator EQClasses_begin() { return EQClasses.begin(); } @@ -475,8 +464,6 @@ public: return {}; } - void Register(const BugType *BT); - /// Add the given report to the set of reports tracked by BugReporter. /// /// The reports are usually generated by the checkers. Further, they are @@ -511,8 +498,6 @@ public: PathSensitiveBugReporter(BugReporterData& d, ExprEngine& eng) : BugReporter(d, PathSensitiveBRKind), Eng(eng) {} - ~PathSensitiveBugReporter() override = default; - /// getGraph - Get the exploded graph created by the analysis engine /// for the analyzed method or function. const ExplodedGraph &getGraph() const; |