forked from OSchip/llvm-project
Add setter method PreprocessorLexer::setParsingPreprocessorDirective(). This will be used by the mechanism to generate cached tokens.
llvm-svn: 60070
This commit is contained in:
parent
615f34c719
commit
e6847594ef
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue