14 #ifndef LLVM_CLANG_LEX_PTHLEXER_H
15 #define LLVM_CLANG_LEX_PTHLEXER_H
22 class PTHSpellingSearch;
28 const unsigned char* TokBuf;
32 const unsigned char* CurPtr;
36 const unsigned char* LastHashTokPtr;
41 const unsigned char* PPCond;
45 const unsigned char* CurPPCondPtr;
48 void operator=(
const PTHLexer &) =
delete;
51 void ReadToken(
Token& T);
87 return x ==
tok::eof ? 2 : x == tok::l_paren;
bool Lex(Token &Tok)
Lex - Return the next token.
Token - This structure provides full information about a lexed token.
const FileID FID
The SourceManager FileID corresponding to the file being lexed.
void DiscardToEndOfLine()
DiscardToEndOfLine - Read the rest of the current preprocessor line as an uninterpreted string...
The result type of a method or function.
SourceLocation getSourceLocation() override
getSourceLocation - Return a source location for the token in the current file.
Encodes a location in the source.
TokenKind
Provides a simple uniform namespace for tokens from all C languages.
An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...
bool SkipBlock()
SkipBlock - Used by Preprocessor to skip the current conditional block.
unsigned isNextPPTokenLParen()
isNextPPTokenLParen - Return 1 if the next unexpanded token will return a tok::l_paren token...
void IndirectLex(Token &Result) override
IndirectLex - An indirect call to 'Lex' that can be invoked via the PreprocessorLexer interface...
Defines the PreprocessorLexer interface.
Engages in a tight little dance with the lexer to efficiently preprocess tokens.