diff options
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index 2194d6fe62..261daed75b 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -47,7 +47,6 @@ class PPCallbacks; class CodeCompletionHandler; class DirectoryLookup; class PreprocessingRecord; -class PPMacroExpansionTrap; /// Preprocessor - This object engages in a tight little dance with the lexer to /// efficiently preprocess tokens. Lexers know only about tokens within a @@ -111,11 +110,6 @@ class Preprocessor { /// DisableMacroExpansion - True if macro expansion is disabled. bool DisableMacroExpansion : 1; - /// \brief This is set to true when a macro is expanded. - /// Used by PPMacroExpansionTrap. - bool MacroExpansionFlag : 1; - friend class PPMacroExpansionTrap; - /// \brief Whether we have already loaded macros from the external source. mutable bool ReadMacrosFromExternalSource : 1; @@ -1035,17 +1029,6 @@ public: virtual bool HandleComment(Preprocessor &PP, SourceRange Comment) = 0; }; -/// \brief RAII class that determines when any macro expansion has occurred -/// between the time the instance was created and the time it was -/// queried. -class PPMacroExpansionTrap { - Preprocessor &PP; -public: - PPMacroExpansionTrap(Preprocessor &PP) : PP(PP) { reset(); } - bool hasMacroExpansionOccured() const { return PP.MacroExpansionFlag; } - void reset() { PP.MacroExpansionFlag = false; } -}; - } // end namespace clang #endif |