aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Lex/Preprocessor.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-17 23:30:53 +0000
committerChris Lattner <sabre@nondot.org>2009-04-17 23:30:53 +0000
commitab82f41b217ce588a9456c0b4411f219d3ed0df8 (patch)
tree830e162ddbc17e38dff53505da711e828341f689 /include/clang/Lex/Preprocessor.h
parent3e1af84bb0092a1aafb49deaa4ab6664c9a9071b (diff)
#line is allowed to have macros that expand to nothing after them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Lex/Preprocessor.h')
-rw-r--r--include/clang/Lex/Preprocessor.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/clang/Lex/Preprocessor.h b/include/clang/Lex/Preprocessor.h
index 9e4278515b..2184acf0e3 100644
--- a/include/clang/Lex/Preprocessor.h
+++ b/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.