HomeSort by: relevance | last modified time | path
    Searched refs:Macro (Results 1 - 25 of 95) sorted by relevancy

1 2 3 4

  /src/external/apache2/llvm/dist/llvm/tools/yaml2obj/
yaml2obj.cpp 40 "definition. The syntax is <macro>=<definition>"));
61 StringRef Macro, Definition;
62 std::tie(Macro, Definition) = Define.split('=');
63 if (!Define.count('=') || Macro.empty()) {
67 if (!Defines.try_emplace(Macro, Definition).second) {
68 ErrHandler("'" + Macro + "'" + " redefined");
79 StringRef Macro;
81 std::tie(Macro, Default) = MacroExpr.split('=');
84 // Otherwise we use a default macro value if present.
85 auto It = Defines.find(Macro);
    [all...]
  /src/external/apache2/llvm/dist/clang/include/clang/Lex/
CodeCompletionHandler.h 44 /// where the name of a macro is expected.
46 /// \param IsDefinition Whether this is the definition of a macro, e.g.,
55 /// function-like macro argument.
57 /// There will be another callback invocation after the macro arguments are
59 /// callback is invoked inside a macro argument.
60 virtual void CodeCompleteMacroArgument(IdentifierInfo *Macro,
TokenLexer.h 27 /// TokenLexer - This implements a lexer that returns tokens from a macro body
29 /// macro expansion and _Pragma handling, for example.
33 /// The macro we are expanding from. This is null if expanding a token stream.
34 MacroInfo *Macro = nullptr;
36 /// The actual arguments specified for a function-like macro, or null. The
43 /// 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
59 /// The source location range where this macro was expanded.
63 /// was reserved for the current macro expansion.
66 /// The offset of the macro expansion in th
    [all...]
MacroInfo.h 36 /// Encapsulates the data about a macro definition (e.g. its tokens).
41 // State set when the macro is defined.
43 /// The location the macro is defined.
46 /// The location of the last token in the macro.
49 /// The list of arguments for a function-like macro.
54 /// macro, this includes the \c __VA_ARGS__ identifier on the list.
60 /// This is the list of tokens that the macro is defined to.
63 /// Length in characters of the macro definition.
67 /// True if this macro is function-like, false if it is object-like.
70 /// True if this macro is of the form "#define X(...)" o
    [all...]
  /src/external/apache2/llvm/dist/clang/tools/libclang/
CIndexHigh.cpp 129 /// For a macro \arg Loc, returns the file spelling location and sets
130 /// to \arg isMacroArg whether the spelling resides inside a macro definition or
131 /// a macro argument.
200 // FIXME: For a macro definition make sure that all expansions
247 const IdentifierInfo *Macro;
251 const IdentifierInfo *Macro,
253 : Unit(Unit), File(File), Macro(Macro), visitor(visitor) { }
265 const IdentifierInfo *Macro = nullptr;
267 Macro = getCursorMacroDefinition(cursor)->getName()
    [all...]
  /src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
CheckerHelpers.h 67 /// Try to parse the value of a defined preprocessor macro. We can only parse
70 llvm::Optional<int> tryExpandAsInteger(StringRef Macro, const Preprocessor &PP);
  /src/external/apache2/llvm/dist/clang/lib/Lex/
TokenLexer.cpp 36 /// Create a TokenLexer for the specified macro with the specified actual
44 Macro = MI;
53 Tokens = &*Macro->tokens_begin();
57 NumTokens = Macro->tokens_end()-Macro->tokens_begin();
66 "Macro defined in macro?");
69 // Reserve a source location entry chunk for the length of the macro
74 MacroDefLength = Macro->getDefinitionLength(SM);
81 // If this is a function-like macro, expand the arguments and chang
    [all...]
PPLexerChange.cpp 32 /// \#include. This looks through macro expansions and active _Pragma lexers.
46 /// that this ignores any potentially active macro expansions and _Pragma
69 assert(!CurTokenLexer && "Cannot #include a file inside a macro!");
122 /// EnterMacro - Add a Macro to the top of the include stack and start lexing
125 MacroInfo *Macro, MacroArgs *Args) {
128 TokLexer = std::make_unique<TokenLexer>(Tok, ILEnd, Macro, Args, *this);
131 TokLexer->Init(Tok, ILEnd, Macro, Args);
141 /// EnterTokenStream - Add a "macro" context to the top of the include stack,
145 /// not be subject to further macro expansion. Otherwise, these tokens will
146 /// be re-macro-expanded when/if expansion is enabled
    [all...]
MacroInfo.cpp 51 "Macro defined in macro?");
53 "Macro defined in macro?");
59 "Macro definition spanning multiple FileIDs ?");
67 /// Return true if the specified macro definition is equal to
68 /// this macro in spelling, arguments, and whitespace.
70 /// \param Syntactically if true, the macro definitions can be identical even
71 /// if they use different identifiers for the function macro parameters.
145 Out << "\n #define <macro>";
    [all...]
PPExpressions.cpp 96 /// indicates the macro that was checked.
131 MacroDefinition Macro = PP.getMacroDefinition(II);
132 Result.Val = !!Macro;
134 DT.IncludedUndefinedIds = !Macro;
136 // If there is a macro, mark it used.
138 PP.markMacroAsUsed(Macro.getMacroInfo());
140 // Save macro token for callback.
165 // Prior to evaluation, macro invocations in the list of preprocessing
167 // (except for those macro names modified by the 'defined' unary operator),
170 // not match one of the two specified forms prior to macro replacement, th
    [all...]
PreprocessingRecord.cpp 222 // The end locations of entities may be unordered (when a macro expansion
223 // is inside another macro argument), but for this case it is not important
224 // whether we get the first macro expansion or its containing macro.
261 "a macro definition was encountered out-of-order");
276 // "#include MACRO(STUFF)"
277 // or with macro expansions inside macro arguments where the arguments are
288 // Usually there are few macro expansions when defining the filename, do a
344 void PreprocessingRecord::RegisterMacroDefinition(MacroInfo *Macro,
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/Format/
MacroExpander.cpp 11 /// This file contains the implementation of MacroExpander, which handles macro
129 for (const std::string &Macro : Macros) {
130 parseDefinition(Macro);
136 void MacroExpander::parseDefinition(const std::string &Macro) {
138 llvm::MemoryBuffer::getMemBufferCopy(Macro, "<scratch space>"));
190 // A token can be part of a macro argument at multiple levels.
193 // ID, then again as argument to the outer ID. We keep the macro
206 // Create a copy of the tokens from the macro body, i.e. were not provided
Macros.h 11 /// This file contains the main building blocks of macro support in
15 /// in isolation, clang-format's macro support uses expansions users provide
18 /// Macro definitions are of the form "MACRO(p1, p2)=p1 + p2", but only support
24 /// macro call. The UnwrappedLineParser continues to parse UnwrappedLines
61 /// Takes a set of macro definitions as strings and allows expanding calls to
82 /// Furthermore, only a single expansion of each macro argument is supported,
93 /// Construct a macro expander from a set of macro definitions.
94 /// Macro definitions must be encoded as UTF-8
    [all...]
FormatTokenLexer.cpp 720 FormatToken *Macro = Tokens[Tokens.size() - 4];
721 if (Macro->TokenText != "_T")
724 const char *Start = Macro->TokenText.data();
727 String->IsFirst = Macro->IsFirst;
728 String->LastNewlineOffset = Macro->LastNewlineOffset;
729 String->WhitespaceRange = Macro->WhitespaceRange;
730 String->OriginalColumn = Macro->OriginalColumn;
733 String->NewlinesBefore = Macro->NewlinesBefore;
734 String->HasUnescapedNewline = Macro->HasUnescapedNewline;
929 // in macro definitions
    [all...]
  /src/external/gpl3/gcc.old/dist/gcc/d/dmd/
dmacro.d 2 * Text macro processor for Ddoc.
25 * Define name=text macro.
26 * If macro `name` already exists, replace the text for it.
28 * name = name of macro
29 * text = text of macro
39 mactab[name] = new Macro(name, text);
50 printf("Macro::expand(buf[%d..%d], arg = '%.*s')\n", start, pend, cast(int)arg.length, arg.ptr);
57 error(Loc.initial, "DDoc macro expansion limit exceeded; more than %d expansions.",
94 // Just remove macro invocation
139 /* A valid start of macro expansion is $(c, where c i
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
CheckerHelpers.cpp 113 llvm::Optional<int> tryExpandAsInteger(StringRef Macro,
115 const auto *MacroII = PP.getIdentifierInfo(Macro);
129 // Parse an integer at the end of the macro definition.
131 // FIXME: EOF macro token coming from a PCH file on macOS while marked as
  /src/external/apache2/llvm/dist/llvm/include/llvm/Support/
WithColor.h 32 Macro,
  /src/external/apache2/llvm/dist/clang/include/clang/Index/
IndexSymbol.h 29 Macro,
110 // Note that macro occurrences aren't currently supported in libclang.
111 Undefinition = 1 << 9, // macro #undef
  /src/external/apache2/llvm/dist/llvm/lib/DebugInfo/DWARF/
DWARFDebugMacro.cpp 30 OS << format("macro header: version = 0x%04" PRIx16, Version)
54 // Based on which version we are handling choose appropriate macro forms.
56 WithColor(OS, HighlightColor::Macro).get()
60 WithColor(OS, HighlightColor::Macro).get() << MacinfoString(E.Type);
82 OS << " macro: " << E.MacroStr;
113 // Keep a mapping from Macro contribution to CUs, this will
114 // be needed while retrieving macro from DW_MACRO_define_strx form.
117 // Skip units which does not contibutes to macro section.
133 // A macro list entry consists of:
161 // 3. Macro strin
    [all...]
  /src/external/apache2/llvm/dist/clang/include/clang/Sema/
CodeCompleteConsumer.h 89 /// Priority for a preprocessor macro.
168 /// Determine the priority to be given to a macro code completion result
171 /// \param MacroName The name of the macro.
176 /// of this macro is a pointer type.
194 /// macro completions.
284 /// Code completion occurred where an macro is being defined.
287 /// Code completion occurred where a macro name is expected
288 /// (without any arguments, in the case of a function-like macro).
446 /// declarator or macro.
471 /// macro invocation, etc
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Support/
WithColor.cpp 42 case HighlightColor::Macro:
  /src/external/gpl3/gcc/dist/libgcc/config/msp430/
lib2hw_mul.S 23 ;; Macro to start a multiply function. Each function has three
40 .macro start_func gcc_name eabi_soft_name eabi_hard_name
58 ;; End a function started with the start_func macro.
59 .macro end_func name
71 ;; Like the start_func macro except that it is used to
74 .macro fake_func gcc_name eabi_soft_name eabi_hard_name
93 .macro mult16 OP1, OP2, RESULT
105 ;* Macro arguments are the memory locations of the hardware registers.
112 .macro mult1632 OP1, OP2, RESLO, RESHI
126 ;* Macro arguments are the memory locations of the hardware registers
    [all...]
  /src/external/gpl3/gcc.old/dist/libgcc/config/msp430/
lib2hw_mul.S 23 ;; Macro to start a multiply function. Each function has three
40 .macro start_func gcc_name eabi_soft_name eabi_hard_name
58 ;; End a function started with the start_func macro.
59 .macro end_func name
71 ;; Like the start_func macro except that it is used to
74 .macro fake_func gcc_name eabi_soft_name eabi_hard_name
93 .macro mult16 OP1, OP2, RESULT
105 ;* Macro arguments are the memory locations of the hardware registers.
112 .macro mult1632 OP1, OP2, RESLO, RESHI
126 ;* Macro arguments are the memory locations of the hardware registers
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/Sema/
CodeCompleteConsumer.cpp 527 return !Result.Macro->getName().startswith(Filter);
579 OS << Results[I].Macro->getName();
715 llvm_unreachable("Macro and keyword kinds are handled by the constructors");
733 return Macro->getName();
  /src/external/apache2/llvm/dist/clang/lib/Analysis/
PathDiagnostic.cpp 95 case PathDiagnosticPiece::Macro: {
96 auto &Macro = cast<PathDiagnosticMacroPiece>(*Piece);
98 Macro.subPieces.flattenTo(Primary, Primary, ShouldFlattenMacros);
102 Macro.subPieces.flattenTo(Primary, NewPath, ShouldFlattenMacros);
104 Macro.subPieces = NewPath;
197 else if (const auto *macro = dyn_cast<PathDiagnosticMacroPiece>(piece))
198 WorkList.push_back(&macro->subPieces);
299 case PathDiagnosticPiece::Macro:
1185 llvm::errs() << "MACRO\n--------------\n";
1186 // FIXME: Print which macro is being invoked
    [all...]

Completed in 30 milliseconds

1 2 3 4