diff options
Diffstat (limited to 'clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h')
-rw-r--r-- | clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h b/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h index 740754090da..589a258852a 100644 --- a/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h +++ b/clang/include/clang/StaticAnalyzer/Core/CheckerRegistry.h @@ -95,6 +95,7 @@ public: }; using CheckerInfoList = std::vector<CheckerInfo>; + using CheckerInfoSet = llvm::SetVector<const CheckerRegistry::CheckerInfo *>; private: template <typename T> @@ -131,9 +132,13 @@ public: /// Prints the name and description of all checkers in this registry. /// This output is not intended to be machine-parseable. void printHelp(raw_ostream &out, size_t maxNameChars = 30) const; - void printList(raw_ostream &out, const AnalyzerOptions &opts) const; + void printList(raw_ostream &out, const AnalyzerOptions &opts, + DiagnosticsEngine &diags) const; private: + CheckerInfoSet getEnabledCheckers(const AnalyzerOptions &Opts, + DiagnosticsEngine &diags) const; + mutable CheckerInfoList Checkers; mutable llvm::StringMap<size_t> Packages; }; |