diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-04 21:13:02 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-04 21:13:02 +0000 |
commit | 468fe246192c3683360d1a6b1b333d85b8794f77 (patch) | |
tree | 2582bfbeb790b7f8362037014829417652261e5e /include/clang/Frontend/InitPreprocessor.h | |
parent | 105aa51c146b66f7dc4ac78faa9a7021acb98d75 (diff) |
Move -undef flag into PreprocessorInitOptions
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/InitPreprocessor.h')
-rw-r--r-- | include/clang/Frontend/InitPreprocessor.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/clang/Frontend/InitPreprocessor.h b/include/clang/Frontend/InitPreprocessor.h index b29ee2728a..bf27b19aa3 100644 --- a/include/clang/Frontend/InitPreprocessor.h +++ b/include/clang/Frontend/InitPreprocessor.h @@ -29,7 +29,16 @@ class PreprocessorInitOptions { std::vector<std::pair<std::string, bool/*isPTH*/> > Includes; std::vector<std::string> MacroIncludes; + unsigned UsePredefines : 1; /// Initialize the preprocessor with the compiler + /// and target specific predefines. + public: + PreprocessorInitOptions() : UsePredefines(true) {} + + bool getUsePredefines() const { return UsePredefines; } + void setUsePredefines(bool Value) { + UsePredefines = Value; + } void addMacroDef(const std::string &Name) { Macros.push_back(std::make_pair(Name, false)); @@ -63,8 +72,7 @@ public: /// environment ready to process a single file. This returns true on error. /// bool InitializePreprocessor(Preprocessor &PP, - const PreprocessorInitOptions& InitOptions, - bool undef_macros); + const PreprocessorInitOptions& InitOptions); } // end namespace clang |