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.
const FileID FID
The SourceManager FileID corresponding to the file being lexed.
void DiscardToEndOfLine()
The result type of a method or function.
SourceLocation getSourceLocation() override
Encodes a location in the source. The SourceManager can decode this to get at the full include stack...
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()
void IndirectLex(Token &Result) override
Defines the PreprocessorLexer interface.
Engages in a tight little dance with the lexer to efficiently preprocess tokens.