Lines Matching defs:TokenLexer
1 //===--- TokenLexer.h - Lex from a token buffer -----------------*- C++ -*-===//
10 // This file defines the TokenLexer interface.
25 /// TokenLexer - This implements a lexer that returns tokens from a macro body
29 class TokenLexer {
36 /// null. The TokenLexer owns the pointed-to object.
84 /// OwnsTokens - This is true if this TokenLexer allocated the Tokens
90 /// DisableMacroExpansion - This is true when tokens lexed from the TokenLexer
94 TokenLexer(const TokenLexer &) LLVM_DELETED_FUNCTION;
95 void operator=(const TokenLexer &) LLVM_DELETED_FUNCTION;
97 /// Create a TokenLexer for the specified macro with the specified actual
101 TokenLexer(Token &Tok, SourceLocation ILEnd, MacroInfo *MI,
107 /// Init - Initialize this TokenLexer to expand from the specified macro
114 /// Create a TokenLexer for the specified token stream. If 'OwnsTokens' is
117 TokenLexer(const Token *TokArray, unsigned NumToks, bool DisableExpansion,
123 /// Init - Initialize this TokenLexer with the specified token stream.
131 ~TokenLexer() { destroy(); }