Home | History | Annotate | Download | only in Lex

Lines Matching refs:Macro

25 /// TokenLexer - This implements a lexer that returns tokens from a macro body
27 /// macro expansion and _Pragma handling, for example.
30 /// Macro - The macro we are expanding from. This is null if expanding a
33 MacroInfo *Macro;
35 /// ActualArgs - The actual arguments specified for a function-like macro, or
43 /// Tokens - This is the pointer to an array of tokens that the macro is
46 /// the macro definition we are lexing from, a cache buffer that is owned by
62 /// ExpandLocStart/End - The source location range where this macro was
67 /// was reserved for the current macro expansion.
70 /// \brief The offset of the macro expansion in the
74 /// \brief Location of the macro definition.
76 /// \brief Length of the macro definition.
79 /// Lexical information about the expansion point of the macro: the identifier
80 /// that the macro expanded from had these properties.
88 // leading space will be applied to the first token following the macro
94 /// macros (for example) we just point into the token buffer of the macro
99 /// should not be subject to further macro expansion.
105 /// Create a TokenLexer for the specified macro with the specified actual
107 /// ILEnd specifies the location of the ')' for a function-like macro or the
108 /// identifier for an object-like macro.
111 : Macro(nullptr), ActualArgs(nullptr), PP(pp), OwnsTokens(false) {
115 /// Init - Initialize this TokenLexer to expand from the specified macro
118 /// ')' for a function-like macro or the identifier for an object-like macro.
127 : Macro(nullptr), ActualArgs(nullptr), PP(pp), OwnsTokens(false) {
134 /// DisableExpansion is true when macro expansion of tokens lexed from this
141 /// isNextTokenLParen - If the next token lexed will pop this macro off the
146 /// Lex - Lex and return a token from this macro stream.
156 /// isAtEnd - Return true if the next lex call will pop this macro off the
169 /// Expand the arguments of a function-like macro so that we can quickly
175 /// macro, other active macros, and anything left on the current physical
180 /// \brief If \p loc is a FileID and points inside the current macro
182 /// macro expansion source location entry.
185 /// \brief Creates SLocEntries and updates the locations of macro argument
188 /// \param ArgIdSpellLoc the location of the macro argument id inside the
189 /// macro definition.
197 MacroInfo *Macro, unsigned MacroArgNo,