Lines Matching defs:Macro
148 /// EnterMacro - Add a Macro to the top of the include stack and start lexing
151 MacroInfo *Macro, MacroArgs *Args) {
154 TokLexer = std::make_unique<TokenLexer>(Tok, ILEnd, Macro, Args, *this);
157 TokLexer->Init(Tok, ILEnd, Macro, Args);
734 for (auto &Macro : StartingMacros) {
736 if (!Macro.second.getLatest() &&
737 Macro.second.getOverriddenMacros().empty())
740 MacroState MS(Macro.second.getLatest());
741 MS.setOverriddenMacros(*this, Macro.second.getOverriddenMacros());
742 State.Macros.insert(std::make_pair(Macro.first, std::move(MS)));
813 auto &Macro = MacroIt->second;
834 for (auto *MD = Macro.getLatest(); MD != OldMD; MD = MD->getPrevious()) {
855 if (Def || !Macro.getOverriddenMacros().empty())
856 addModuleMacro(LeavingMod, II, Def, Macro.getOverriddenMacros(),
862 Macro.setLatest(nullptr);
863 Macro.setOverriddenMacros(*this, {});