Tweak AnalyzerOptions for consistency, and make sure default constructed object

is sane.

llvm-svn: 86908
This commit is contained in:
Daniel Dunbar 2009-11-12 00:24:35 +00:00
parent 39b6e2a0fd
commit a970d39ebf
1 changed files with 21 additions and 9 deletions

View File

@ -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