Home | History | Annotate | Download | only in Lex

Lines Matching refs:Preprocessor

1 //===--- PPLexerChange.cpp - Handle changing lexers in the preprocessor ---===//
10 // This file implements pieces of the Preprocessor interface that manage the
15 #include "clang/Lex/Preprocessor.h"
35 bool Preprocessor::isInPrimaryFile() const {
51 PreprocessorLexer *Preprocessor::getCurrentFileLexer() const {
71 void Preprocessor::EnterSourceFile(FileID FID, const DirectoryLookup *CurDir,
110 void Preprocessor::EnterSourceFileWithLexer(Lexer *TheLexer,
135 void Preprocessor::EnterSourceFileWithPTH(PTHLexer *PL,
159 void Preprocessor::EnterMacro(Token &Tok, SourceLocation ILEnd,
186 void Preprocessor::EnterTokenStream(const Token *Toks, unsigned NumToks,
233 bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) {
396 bool Preprocessor::HandleEndOfTokenLexer(Token &Result) {
417 void Preprocessor::RemoveTopOfLexerStack() {
434 void Preprocessor::HandleMicrosoftCommentPaste(Token &Tok) {
439 // raw mode and preprocessor mode. This will cause it to return \n as an
448 // expansions) and preprocessor mode (return EOD). We know that the lexer
450 // from was expanded. However, it could have already been in preprocessor
480 // If the lexer was already in preprocessor mode, just return the EOD token
481 // to finish the preprocessor line.
492 // preprocessor directive mode), so just return EOF as our token.