diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-04-17 23:30:53 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-04-17 23:30:53 +0000 |
| commit | 0003c27f5e7d19b4069a098a33b14674c39dccb2 (patch) | |
| tree | d0dfadde5567cad1fa70b19611d294e3c026534e /clang/include | |
| parent | 06684350c4428df2d18fce93e8b68379da9798dc (diff) | |
| download | bcm5719-llvm-0003c27f5e7d19b4069a098a33b14674c39dccb2.tar.gz bcm5719-llvm-0003c27f5e7d19b4069a098a33b14674c39dccb2.zip | |
#line is allowed to have macros that expand to nothing after them.
llvm-svn: 69401
Diffstat (limited to 'clang/include')
| -rw-r--r-- | clang/include/clang/Lex/Preprocessor.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/include/clang/Lex/Preprocessor.h b/clang/include/clang/Lex/Preprocessor.h index 9e4278515b7..2184acf0e35 100644 --- a/clang/include/clang/Lex/Preprocessor.h +++ b/clang/include/clang/Lex/Preprocessor.h @@ -580,8 +580,9 @@ public: void HandleDirective(Token &Result); /// CheckEndOfDirective - Ensure that the next token is a tok::eom token. If - /// not, emit a diagnostic and consume up until the eom. - void CheckEndOfDirective(const char *Directive); + /// not, emit a diagnostic and consume up until the eom. If EnableMacros is + /// true, then we consider macros that expand to zero tokens as being ok. + void CheckEndOfDirective(const char *Directive, bool EnableMacros = false); /// DiscardUntilEndOfDirective - Read and discard all tokens remaining on the /// current line until the tok::eom token is found. |

