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 | 1d4000ba5075c873e752968282e91037cbd606a2 (patch) | |
tree | 23a8aa8dcd1cadfca75a3c7535134d14f2b29015 /clang/Lex/Preprocessor.cpp | |
parent | 7ff66fb91e0a79ba6549c56e2fbf522c983eb917 (diff) | |
download | bcm5719-llvm-1d4000ba5075c873e752968282e91037cbd606a2.tar.gz bcm5719-llvm-1d4000ba5075c873e752968282e91037cbd606a2.zip |
rename HandleEndOfMacro -> HandleEndOfTokenLexer
llvm-svn: 48076
Diffstat (limited to 'clang/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/Lex/Preprocessor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/Lex/Preprocessor.cpp b/clang/Lex/Preprocessor.cpp index d8865441b0a..16abbc5fe89 100644 --- a/clang/Lex/Preprocessor.cpp +++ b/clang/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 |