diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 00:24:35 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-12 00:24:35 +0000 |
commit | 918ac48e315d42fed7fe856a3fce70d9d930cdcd (patch) | |
tree | 809bbd3c9abfde8a1da9e4dd71ebc4075dd69660 /include/clang/Frontend/AnalysisConsumer.h | |
parent | c8daaa45130015c93cd0f9145799d07060f665fc (diff) |
Tweak AnalyzerOptions for consistency, and make sure default constructed object
is sane.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86908 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/AnalysisConsumer.h')
-rw-r--r-- | include/clang/Frontend/AnalysisConsumer.h | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/include/clang/Frontend/AnalysisConsumer.h b/include/clang/Frontend/AnalysisConsumer.h index cb08ce2251..d8fe9f33a9 100644 --- a/include/clang/Frontend/AnalysisConsumer.h +++ b/include/clang/Frontend/AnalysisConsumer.h @@ -1,4 +1,4 @@ -//===--- AnalysisConsumer.h - Front-end hooks for the analysis engine------===// +//===--- AnalysisConsumer.h - Front-end Analysis Engine Hooks ---*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -53,19 +53,31 @@ enum AnalysisDiagClients { NUM_ANALYSIS_DIAG_CLIENTS }; -struct AnalyzerOptions { +class AnalyzerOptions { +public: std::vector<Analyses> AnalysisList; AnalysisStores AnalysisStoreOpt; AnalysisConstraints AnalysisConstraintsOpt; AnalysisDiagClients AnalysisDiagOpt; - bool VisualizeEGDot; - bool VisualizeEGUbi; - bool AnalyzeAll; - bool AnalyzerDisplayProgress; - bool PurgeDead; - bool EagerlyAssume; std::string AnalyzeSpecificFunction; - bool TrimGraph; + unsigned AnalyzeAll : 1; + unsigned AnalyzerDisplayProgress : 1; + unsigned EagerlyAssume : 1; + unsigned PurgeDead : 1; + unsigned TrimGraph : 1; + unsigned VisualizeEGDot : 1; + unsigned VisualizeEGUbi : 1; + +public: + AnalyzerOptions() { + AnalyzeAll = 0; + AnalyzerDisplayProgress = 0; + EagerlyAssume = 0; + PurgeDead = 0; + TrimGraph = 0; + VisualizeEGDot = 0; + VisualizeEGUbi = 0; + } }; /// CreateAnalysisConsumer - Creates an ASTConsumer to run various code |