Add setter method PreprocessorLexer::setParsingPreprocessorDirective(). This will be used by the mechanism to generate cached tokens.

llvm-svn: 60070
This commit is contained in:
Ted Kremenek 2008-11-26 00:57:02 +00:00
parent 615f34c719
commit e6847594ef
1 changed files with 7 additions and 1 deletions

View File

@ -116,6 +116,8 @@ protected:
}
unsigned getConditionalStackDepth() const { return ConditionalStack.size(); }
public:
//===--------------------------------------------------------------------===//
// Misc. lexing methods.
@ -125,7 +127,11 @@ protected:
/// 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; }