diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-14 22:11:41 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-14 22:11:41 +0000 |
commit | c215bd659d8266a1d6b66ce231a63405a4c61daf (patch) | |
tree | 8691ff644071b1d3baf76493d963075719d8dab4 /Lex/Preprocessor.cpp | |
parent | b5e240fa9e852b758032b28488a083c546cf6123 (diff) |
expose an iterator interface to getReplacementTokens instead of the datastructure itself.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Lex/Preprocessor.cpp')
-rw-r--r-- | Lex/Preprocessor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lex/Preprocessor.cpp b/Lex/Preprocessor.cpp index 795230120d..073fda2011 100644 --- a/Lex/Preprocessor.cpp +++ b/Lex/Preprocessor.cpp @@ -1729,7 +1729,7 @@ void Preprocessor::HandleDefineDirective(LexerToken &DefineTok, // Error reading macro name? If so, diagnostic already issued. if (MacroNameTok.getKind() == tok::eom) return; - + // If we are supposed to keep comments in #defines, reenable comment saving // mode. CurLexer->KeepCommentMode = KeepMacroComments; @@ -1833,6 +1833,7 @@ void Preprocessor::HandleDefineDirective(LexerToken &DefineTok, } } + // Disable __VA_ARGS__ again. Ident__VA_ARGS__->setIsPoisoned(true); |