Lines Matching defs:Macro
149 /// EnterMacro - Add a Macro to the top of the include stack and start lexing
152 MacroInfo *Macro, MacroArgs *Args) {
155 TokLexer = std::make_unique<TokenLexer>(Tok, ILEnd, Macro, Args, *this);
158 TokLexer->Init(Tok, ILEnd, Macro, Args);
735 for (auto &Macro : StartingMacros) {
737 if (!Macro.second.getLatest() &&
738 Macro.second.getOverriddenMacros().empty())
741 MacroState MS(Macro.second.getLatest());
742 MS.setOverriddenMacros(*this, Macro.second.getOverriddenMacros());
743 State.Macros.insert(std::make_pair(Macro.first, std::move(MS)));
814 auto &Macro = MacroIt->second;
835 for (auto *MD = Macro.getLatest(); MD != OldMD; MD = MD->getPrevious()) {
856 if (Def || !Macro.getOverriddenMacros().empty())
857 addModuleMacro(LeavingMod, II, Def, Macro.getOverriddenMacros(),
863 Macro.setLatest(nullptr);
864 Macro.setOverriddenMacros(*this, {});