diff options
author | Abramo Bagnara <abramo.bagnara@gmail.com> | 2012-03-31 20:17:27 +0000 |
---|---|---|
committer | Abramo Bagnara <abramo.bagnara@gmail.com> | 2012-03-31 20:17:27 +0000 |
commit | e2e8768c290ceceb3ac2e369b5243f40d6c0e3e2 (patch) | |
tree | 599683622dab7b70a0ffc557516d1e150ec0d111 /include/clang/Lex/Preprocessor.h | |
parent | 6c235bc9e126fcecd16257838aa040fc9c363328 (diff) |
Fixed MacroInfo definition range for function like macros with empty body.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153819 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r-- | include/clang/Lex/Preprocessor.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h index fa9c417af5..591a4498eb 100644 --- a/include/clang/Lex/Preprocessor.h +++ b/include/clang/Lex/Preprocessor.h @@ -1120,9 +1120,10 @@ private: /// ReadMacroDefinitionArgList - The ( starting an argument list of a macro /// definition has just been read. Lex the rest of the arguments and the - /// closing ), updating MI with what we learn. Return true if an error occurs - /// parsing the arg list. - bool ReadMacroDefinitionArgList(MacroInfo *MI); + /// closing ), updating MI with what we learn and saving in LastTok the + /// last token read. + /// Return true if an error occurs parsing the arg list. + bool ReadMacroDefinitionArgList(MacroInfo *MI, Token& LastTok); /// SkipExcludedConditionalBlock - We just read a #if or related directive and /// decided that the subsequent tokens are in the #if'd out portion of the |