Home | History | Annotate | Download | only in Lex

Lines Matching full:lexer

21 #include "clang/Lex/Lexer.h"
81 /// Preprocessor - This object engages in a tight little dance with the lexer to
197 /// avoid tearing the Lexer and etc. down).
240 /// place the lexer at the start of a line.
246 OwningPtr<Lexer> CurLexer;
267 /// \brief The kind of lexer we're currently working with.
281 Lexer *TheLexer;
287 IncludeStackInfo(enum CurLexerKind K, Lexer *L, PTHLexer* P,
494 /// lexer.
499 /// getCurrentLexer - Return the current lexer being lexed from. Note
504 /// getCurrentFileLexer - Return the current file lexer being lexed from.
644 /// \brief Hook used by the lexer to invoke the "natural language" code
680 /// which will cause the lexer to start returning the specified tokens.
694 /// RemoveTopOfLexerStack - Pop the current lexer/macro exp off the top of the
695 /// lexer stack. This should only be used in situations where the current
696 /// state of the top-of-stack lexer is known.
726 /// current lexer or macro object.
864 /// \brief Recompute the current lexer kind based on the CurLexer/CurPTHLexer/
937 /// \param StartOfLine Whether skipping these bytes puts the lexer at the
965 return Lexer::getSpelling(loc, buffer, SourceMgr, LangOpts, invalid);
976 return Lexer::getSpelling(Tok, SourceMgr, LangOpts, Invalid);
991 return Lexer::getSpelling(Tok, Buffer, SourceMgr, LangOpts, Invalid);
1004 return Lexer::getRawToken(Loc, Result, SourceMgr, LangOpts);
1032 return Lexer::getImmediateMacroName(Loc, SourceMgr, getLangOpts());
1058 return Lexer::getLocForEndOfToken(Loc, Offset, SourceMgr, LangOpts);
1068 return Lexer::isAtStartOfMacroExpansion(loc, SourceMgr, LangOpts,
1079 return Lexer::isAtEndOfMacroExpansion(loc, SourceMgr, LangOpts, MacroEnd);
1092 return Lexer::AdvanceToTokenCharacter(TokStart, Char, SourceMgr, LangOpts);
1116 // Preprocessor callback methods. These are invoked by a lexer as various
1165 /// HandleIdentifier - This callback is invoked when the lexer reads an
1172 /// HandleEndOfFile - This callback is invoked when the lexer hits the end of
1182 lexer sees a # token
1184 /// lexer/preprocessor state, and advances the lexer(s) so that the next token
1211 /// \brief Turn the specified lexer token into a fully checked and spelled
1372 /// EnterSourceFileWithLexer - Add a lexer to the top of the include stack and
1374 void EnterSourceFileWithLexer(Lexer *TheLexer, const DirectoryLookup *Dir);
1376 /// EnterSourceFileWithPTH - Add a lexer to the top of the include stack and
1388 static bool IsFileLexer(const Lexer* L, const PreprocessorLexer* P) {
1404 // If the Lexer pointers are 0 and IncludeMacroStack is empty, it means