[cfe-commits] r60070 - /cfe/trunk/include/clang/Lex/PreprocessorLexer.h
Ted Kremenek
kremenek at apple.com
Tue Nov 25 16:57:02 PST 2008
Author: kremenek
Date: Tue Nov 25 18:57:02 2008
New Revision: 60070
URL: http://llvm.org/viewvc/llvm-project?rev=60070&view=rev
Log:
Add setter method PreprocessorLexer::setParsingPreprocessorDirective(). This will be used by the mechanism to generate cached tokens.
Modified:
cfe/trunk/include/clang/Lex/PreprocessorLexer.h
Modified: cfe/trunk/include/clang/Lex/PreprocessorLexer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Lex/PreprocessorLexer.h?rev=60070&r1=60069&r2=60070&view=diff
==============================================================================
--- cfe/trunk/include/clang/Lex/PreprocessorLexer.h (original)
+++ cfe/trunk/include/clang/Lex/PreprocessorLexer.h Tue Nov 25 18:57:02 2008
@@ -116,6 +116,8 @@
}
unsigned getConditionalStackDepth() const { return ConditionalStack.size(); }
+
+public:
//===--------------------------------------------------------------------===//
// Misc. lexing methods.
@@ -125,7 +127,11 @@
/// lexically legal, emit a diagnostic and return a result EOM token.
void LexIncludeFilename(Token &Result);
-public:
+ /// setParsingPreprocessorDirective - Inform the lexer whether or not
+ /// we are currently lexing a preprocessor directive.
+ void setParsingPreprocessorDirective(bool f) {
+ ParsingPreprocessorDirective = f;
+ }
/// isLexingRawMode - Return true if this lexer is in raw mode or not.
bool isLexingRawMode() const { return LexingRawMode; }
More information about the cfe-commits
mailing list