From c215bd659d8266a1d6b66ce231a63405a4c61daf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 14 Jul 2007 22:11:41 +0000 Subject: 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 --- Lex/Preprocessor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lex/Preprocessor.cpp') 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); -- cgit v1.2.3-18-g5258