diff options
Diffstat (limited to 'include/clang/Frontend/CompilerInvocation.h')
-rw-r--r-- | include/clang/Frontend/CompilerInvocation.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/include/clang/Frontend/CompilerInvocation.h b/include/clang/Frontend/CompilerInvocation.h index 8a8b0fb000..fc0497a7ac 100644 --- a/include/clang/Frontend/CompilerInvocation.h +++ b/include/clang/Frontend/CompilerInvocation.h @@ -15,6 +15,7 @@ #include "clang/Frontend/AnalysisConsumer.h" #include "clang/Frontend/DependencyOutputOptions.h" #include "clang/Frontend/DiagnosticOptions.h" +#include "clang/Frontend/FrontendOptions.h" #include "clang/Frontend/HeaderSearchOptions.h" #include "clang/Frontend/PreprocessorOptions.h" #include "clang/Frontend/PreprocessorOutputOptions.h" @@ -42,6 +43,9 @@ class CompilerInvocation { /// Options controlling the diagnostic engine. DiagnosticOptions DiagOpts; + /// Options controlling the frontend itself. + FrontendOptions FrontendOpts; + /// Options controlling the #include directive. HeaderSearchOptions HeaderSearchOpts; @@ -54,19 +58,9 @@ class CompilerInvocation { /// Options controlling preprocessed output. PreprocessorOutputOptions PreprocessorOutputOpts; - /// The location for the output file. This is optional only for compiler - /// invocations which have no output. - std::string OutputFile; - public: CompilerInvocation() {} - /// @name Invidual Options - /// @{ - - std::string &getOutputFile() { return OutputFile; } - const std::string &getOutputFile() const { return OutputFile; } - /// @} /// @name Option Subgroups /// @{ @@ -96,6 +90,11 @@ public: return HeaderSearchOpts; } + FrontendOptions &getFrontendOpts() { return FrontendOpts; } + const FrontendOptions &getFrontendOpts() const { + return FrontendOpts; + } + LangOptions &getLangOpts() { return LangOpts; } const LangOptions &getLangOpts() const { return LangOpts; } |