diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-09 03:04:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-09 03:04:16 +0000 |
commit | fde2bf9befede63e3f01f84519784c17b4c81480 (patch) | |
tree | 0bc31a33992061813224e264821be3518ac08e17 /Lex/Preprocessor.cpp | |
parent | e5c8ffe09f8fec836b90f23c2a3b996bfc5b09c4 (diff) |
rename HandleEndOfMacro -> HandleEndOfTokenLexer
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Lex/Preprocessor.cpp')
-rw-r--r-- | Lex/Preprocessor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lex/Preprocessor.cpp b/Lex/Preprocessor.cpp index d8865441b0..16abbc5fe8 100644 --- a/Lex/Preprocessor.cpp +++ b/Lex/Preprocessor.cpp @@ -1333,9 +1333,9 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) { return true; } -/// HandleEndOfMacro - This callback is invoked when the lexer hits the end of -/// the current macro expansion or token stream expansion. -bool Preprocessor::HandleEndOfMacro(Token &Result) { +/// HandleEndOfTokenLexer - This callback is invoked when the current TokenLexer +/// hits the end of its token stream. +bool Preprocessor::HandleEndOfTokenLexer(Token &Result) { assert(CurTokenLexer && !CurLexer && "Ending a macro when currently in a #include file!"); @@ -1382,7 +1382,7 @@ void Preprocessor::HandleMicrosoftCommentPaste(Token &Tok) { // Okay, we either found and switched over the lexer, or we didn't find a // lexer. In either case, finish off the macro the comment came from, getting // the next token. - if (!HandleEndOfMacro(Tok)) Lex(Tok); + if (!HandleEndOfTokenLexer(Tok)) Lex(Tok); // Discarding comments as long as we don't have EOF or EOM. This 'comments // out' the rest of the line, including any tokens that came from other macros |