diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-09 23:12:31 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-09 23:12:31 +0000 |
commit | 5fc7d344ae772731d3d7c9076b8786e780a68696 (patch) | |
tree | 3c61e9f296418b7819f5f94c127ab17c39dd4496 /include/clang/Frontend/CompilerInvocation.h | |
parent | 2cdafa8001ee69b75d2906cbb36f16cf8e1dc60a (diff) |
Add PreprocessorOptions to CompilerInvocation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86623 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/CompilerInvocation.h')
-rw-r--r-- | include/clang/Frontend/CompilerInvocation.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/include/clang/Frontend/CompilerInvocation.h b/include/clang/Frontend/CompilerInvocation.h index 3416654481..b249ce9077 100644 --- a/include/clang/Frontend/CompilerInvocation.h +++ b/include/clang/Frontend/CompilerInvocation.h @@ -13,6 +13,7 @@ #include "clang/Basic/LangOptions.h" #include "clang/Frontend/DiagnosticOptions.h" #include "clang/Frontend/HeaderSearchOptions.h" +#include "clang/Frontend/PreprocessorOptions.h" #include "llvm/ADT/StringMap.h" #include <string> @@ -32,14 +33,17 @@ class CompilerInvocation { /// Options controlling the diagnostic engine. DiagnosticOptions DiagOpts; - /// Set of target-specific code generation features to enable/disable. - llvm::StringMap<bool> TargetFeatures; + /// Options controlling the #include directive. + HeaderSearchOptions HeaderSearchOpts; /// Options controlling the language variant. LangOptions LangOpts; - /// Options controlling the #include directive. - HeaderSearchOptions HeaderSearchOpts; + /// Options controlling the preprocessor (aside from #include handling). + PreprocessorOptions PreprocessorOpts; + + /// Set of target-specific code generation features to enable/disable. + llvm::StringMap<bool> TargetFeatures; public: CompilerInvocation() {} @@ -50,17 +54,22 @@ public: DiagnosticOptions &getDiagnosticOpts() { return DiagOpts; } const DiagnosticOptions &getDiagnosticOpts() const { return DiagOpts; } - llvm::StringMap<bool> &getTargetFeatures() { return TargetFeatures; } - const llvm::StringMap<bool> &getTargetFeatures() const { - return TargetFeatures; + HeaderSearchOptions &getHeaderSearchOpts() { return HeaderSearchOpts; } + const HeaderSearchOptions &getHeaderSearchOpts() const { + return HeaderSearchOpts; } LangOptions &getLangOpts() { return LangOpts; } const LangOptions &getLangOpts() const { return LangOpts; } - HeaderSearchOptions &getHeaderSearchOpts() { return HeaderSearchOpts; } - const HeaderSearchOptions &getHeaderSearchOpts() const { - return HeaderSearchOpts; + PreprocessorOptions &getPreprocessorOpts() { return PreprocessorOpts; } + const PreprocessorOptions &getPreprocessorOpts() const { + return PreprocessorOpts; + } + + llvm::StringMap<bool> &getTargetFeatures() { return TargetFeatures; } + const llvm::StringMap<bool> &getTargetFeatures() const { + return TargetFeatures; } }; |