Move AnalyzerOptions.h into 'Core' StaticAnalyzer sub-library.
llvm-svn: 162977
This commit is contained in:
@@ -51,7 +51,7 @@ static const char *getAnalysisStoreName(AnalysisStores Kind) {
|
||||
llvm_unreachable("Unknown analysis store!");
|
||||
#define ANALYSIS_STORE(NAME, CMDFLAG, DESC, CREATFN) \
|
||||
case NAME##Model: return CMDFLAG;
|
||||
#include "clang/StaticAnalyzer/Analyses.def"
|
||||
#include "clang/StaticAnalyzer/Core/Analyses.def"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ static const char *getAnalysisConstraintName(AnalysisConstraints Kind) {
|
||||
llvm_unreachable("Unknown analysis constraints!");
|
||||
#define ANALYSIS_CONSTRAINTS(NAME, CMDFLAG, DESC, CREATFN) \
|
||||
case NAME##Model: return CMDFLAG;
|
||||
#include "clang/StaticAnalyzer/Analyses.def"
|
||||
#include "clang/StaticAnalyzer/Core/Analyses.def"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ static const char *getAnalysisDiagClientName(AnalysisDiagClients Kind) {
|
||||
llvm_unreachable("Unknown analysis client!");
|
||||
#define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATFN, AUTOCREATE) \
|
||||
case PD_##NAME: return CMDFLAG;
|
||||
#include "clang/StaticAnalyzer/Analyses.def"
|
||||
#include "clang/StaticAnalyzer/Core/Analyses.def"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ static const char *getAnalysisPurgeModeName(AnalysisPurgeMode Kind) {
|
||||
llvm_unreachable("Unknown analysis purge mode!");
|
||||
#define ANALYSIS_PURGE(NAME, CMDFLAG, DESC) \
|
||||
case NAME: return CMDFLAG;
|
||||
#include "clang/StaticAnalyzer/Analyses.def"
|
||||
#include "clang/StaticAnalyzer/Core/Analyses.def"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ static const char *getAnalysisIPAModeName(AnalysisIPAMode Kind) {
|
||||
llvm_unreachable("Unknown analysis ipa mode!");
|
||||
#define ANALYSIS_IPA(NAME, CMDFLAG, DESC) \
|
||||
case NAME: return CMDFLAG;
|
||||
#include "clang/StaticAnalyzer/Analyses.def"
|
||||
#include "clang/StaticAnalyzer/Core/Analyses.def"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ static const char *
|
||||
llvm_unreachable("Unknown analysis inlining mode!");
|
||||
#define ANALYSIS_INLINE_SELECTION(NAME, CMDFLAG, DESC) \
|
||||
case NAME: return CMDFLAG;
|
||||
#include "clang/StaticAnalyzer/Analyses.def"
|
||||
#include "clang/StaticAnalyzer/Core/Analyses.def"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1024,7 +1024,7 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args,
|
||||
AnalysisStores Value = llvm::StringSwitch<AnalysisStores>(Name)
|
||||
#define ANALYSIS_STORE(NAME, CMDFLAG, DESC, CREATFN) \
|
||||
.Case(CMDFLAG, NAME##Model)
|
||||
#include "clang/StaticAnalyzer/Analyses.def"
|
||||
#include "clang/StaticAnalyzer/Core/Analyses.def"
|
||||
.Default(NumStores);
|
||||
if (Value == NumStores) {
|
||||
Diags.Report(diag::err_drv_invalid_value)
|
||||
@@ -1040,7 +1040,7 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args,
|
||||
AnalysisConstraints Value = llvm::StringSwitch<AnalysisConstraints>(Name)
|
||||
#define ANALYSIS_CONSTRAINTS(NAME, CMDFLAG, DESC, CREATFN) \
|
||||
.Case(CMDFLAG, NAME##Model)
|
||||
#include "clang/StaticAnalyzer/Analyses.def"
|
||||
#include "clang/StaticAnalyzer/Core/Analyses.def"
|
||||
.Default(NumConstraints);
|
||||
if (Value == NumConstraints) {
|
||||
Diags.Report(diag::err_drv_invalid_value)
|
||||
@@ -1056,7 +1056,7 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args,
|
||||
AnalysisDiagClients Value = llvm::StringSwitch<AnalysisDiagClients>(Name)
|
||||
#define ANALYSIS_DIAGNOSTICS(NAME, CMDFLAG, DESC, CREATFN, AUTOCREAT) \
|
||||
.Case(CMDFLAG, PD_##NAME)
|
||||
#include "clang/StaticAnalyzer/Analyses.def"
|
||||
#include "clang/StaticAnalyzer/Core/Analyses.def"
|
||||
.Default(NUM_ANALYSIS_DIAG_CLIENTS);
|
||||
if (Value == NUM_ANALYSIS_DIAG_CLIENTS) {
|
||||
Diags.Report(diag::err_drv_invalid_value)
|
||||
@@ -1072,7 +1072,7 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args,
|
||||
AnalysisPurgeMode Value = llvm::StringSwitch<AnalysisPurgeMode>(Name)
|
||||
#define ANALYSIS_PURGE(NAME, CMDFLAG, DESC) \
|
||||
.Case(CMDFLAG, NAME)
|
||||
#include "clang/StaticAnalyzer/Analyses.def"
|
||||
#include "clang/StaticAnalyzer/Core/Analyses.def"
|
||||
.Default(NumPurgeModes);
|
||||
if (Value == NumPurgeModes) {
|
||||
Diags.Report(diag::err_drv_invalid_value)
|
||||
@@ -1088,7 +1088,7 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args,
|
||||
AnalysisIPAMode Value = llvm::StringSwitch<AnalysisIPAMode>(Name)
|
||||
#define ANALYSIS_IPA(NAME, CMDFLAG, DESC) \
|
||||
.Case(CMDFLAG, NAME)
|
||||
#include "clang/StaticAnalyzer/Analyses.def"
|
||||
#include "clang/StaticAnalyzer/Core/Analyses.def"
|
||||
.Default(NumIPAModes);
|
||||
if (Value == NumIPAModes) {
|
||||
Diags.Report(diag::err_drv_invalid_value)
|
||||
@@ -1104,7 +1104,7 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args,
|
||||
AnalysisInliningMode Value = llvm::StringSwitch<AnalysisInliningMode>(Name)
|
||||
#define ANALYSIS_INLINING_MODE(NAME, CMDFLAG, DESC) \
|
||||
.Case(CMDFLAG, NAME)
|
||||
#include "clang/StaticAnalyzer/Analyses.def"
|
||||
#include "clang/StaticAnalyzer/Core/Analyses.def"
|
||||
.Default(NumInliningModes);
|
||||
if (Value == NumInliningModes) {
|
||||
Diags.Report(diag::err_drv_invalid_value)
|
||||
|
||||
Reference in New Issue
Block a user