Home | History | Annotate | Download | only in Serialization

Lines Matching defs:Macro

451 /// \brief Collect the macro definitions provided by the given preprocessor
458 StringRef Macro = PPOpts.Macros[I].first;
461 std::pair<StringRef, StringRef> MacroPair = Macro.split('=');
465 // For an #undef'd macro, we only care about the name.
474 // For a #define'd macro, figure out the actual definition.
475 if (MacroName.size() == Macro.size())
499 // Check macro definitions.
507 // Dig out the macro definition in the existing preprocessor options.
511 // Check whether we know anything about this macro name or not.
533 // If the macro was defined in one but undef'd in the other, we have a
543 // If the macro was #undef'd in both, or if the macro bodies are identical,
548 // The macro bodies differ; complain.
836 // If this identifier is a macro, deserialize the macro
1394 // after reading this macro.
1400 MacroInfo *Macro = nullptr;
1413 return Macro;
1415 return Macro;
1428 return Macro;
1432 // If we already have a macro, that means that we've hit the end
1433 // of the definition of the macro we were looking for. We're
1435 if (Macro)
1436 return Macro;
1447 // Decode function-like macro info.
1456 // Install function-like macro info.
1464 // Remember that we saw this macro last so that we add the tokens that
1466 Macro = MI;
1470 // We have a macro definition. Register the association
1479 PPRec.RegisterMacroDefinition(Macro, PPDef);
1489 if (!Macro) break;
1493 Macro->AddTokenToBody(Tok);
1785 // macro histroy.
1815 // We found the macro directive history; that's the last record
1816 // for this macro.
1828 auto *Macro = PP.getModuleMacro(Mod, II);
1829 assert(Macro && "missing definition for overridden macro");
1830 Overrides.push_back(Macro);
1844 // Deserialize the macro directives history in reverse source-order.
4050 // FIXME: This does not make macro-only imports visible again.
4796 // Macro definitions/undefs
4798 std::string Macro = ReadString(Record, Idx);
4800 PPOpts.Macros.push_back(std::make_pair(Macro, IsUndef));
4808 // Macro Includes
4906 // Decode the identifier info and then check again; if the macro is
5017 // The end locations of entities may be unordered (when a macro expansion
5018 // is inside another macro argument), but for this case it is not important
5019 // whether we get the first macro expansion or its containing macro.
6872 dumpModuleIDMap("Global macro map", GlobalMacroMap);
7461 Error("no macro table in AST file");
7469 assert(I != GlobalMacroMap.end() && "Corrupted global macro map");
7488 assert(I != M.MacroRemap.end() && "Invalid index into macro index remap");
8288 // Load any pending macro definitions.
8293 // Initialize the macro history from chained-PCHs ahead of module imports.