Lines Matching full:macro
10 /// This file contains the main building blocks of macro support in
14 /// in isolation, clang-format's macro support uses expansions users provide
17 /// Macro definitions are of the form "MACRO(p1, p2)=p1 + p2", but only support
23 /// macro call. The UnwrappedLineParser continues to parse UnwrappedLines
29 /// annotations will be reused when formatting the spelled macro calls.
52 /// Takes a set of macro definitions as strings and allows expanding calls to
73 /// Furthermore, only a single expansion of each macro argument is supported,
84 /// Construct a macro expander from a set of macro definitions.
85 /// Macro definitions must be encoded as UTF-8.
88 /// macro-definition language:
103 /// Returns whether any macro \p Name is defined, regardless of overloads.
106 /// Returns whetherh there is an object-like overload, i.e. where the macro
110 /// Returns whether macro \p Name provides an overload with the given arity.
114 /// each element in \p Args is a positional argument to the macro call.
125 void parseDefinition(const std::string &Macro);
137 /// single UnwrappedLine containing the macro calls. This UnwrappedLine may be
141 /// In the simplest case, a spelled UnwrappedLine contains one macro, and after
142 /// expanding it we have one expanded UnwrappedLine. In general, macro
155 /// Given a mapping from the macro name identifier token in the macro call
156 /// to the tokens of the macro call, for example:
166 /// Creates the tree of unwrapped lines containing the macro call tokens so that
167 /// the macro call tokens fit the semantic structure of the expanded formatted
177 /// tokens of the spelled macro call.
184 /// macro to unwrapped lines in the spelled macro call so that the resulting
189 /// Check whether at the current state there is no open macro expansion
190 /// that needs to be processed to finish an macro call.
193 /// If there are multiple subsequent macro calls within an unwrapped line in
199 /// macro calls, formatted according to the expanded token stream received
208 /// If a token in a macro argument is a child of a token in the expansion,
209 /// the parent will be the corresponding token in the macro call.
250 Start, // No macro expansion was found in the input yet.
251 InProgress, // During a macro reconstruction.
252 Finalized, // Past macro reconstruction, the result is finalized.
307 // of the comma token in the macro call.
319 // The identifier token of the macro call.
327 // Stack of macro calls for which we're in the middle of an expansion.
336 // The last token in the parent line or expansion, or nullptr if the macro
339 // For example, in the macro call:
343 // In the macro call:
349 // In the macro call:
354 // The l_paren of this MacroCallState's macro call.
359 // argument separating commas for each level in the macro call go in order to
365 // |- MACRO
373 // Maps from identifier of the macro call to an unwrapped line containing
374 // all tokens of the macro call.