Lines Matching defs:Toks
127 LexTemplateFunctionForLateParsing(LPT->Toks);
129 CachedTokens Toks;
130 LexTemplateFunctionForLateParsing(Toks);
141 CachedTokens &Toks = LM->Toks;
146 if (ConsumeAndStoreFunctionPrologue(Toks)) {
158 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false);
164 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false);
165 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false);
191 CachedTokens &Toks = MI->Toks;
195 Toks.push_back(Tok);
201 Toks.push_back(Tok);
205 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/true);
208 ConsumeAndStoreUntil(tok::comma, Toks, /*StopAtSemi=*/true,
218 Toks.push_back(Eof);
301 if (CachedTokens *Toks = LM.DefaultArgs[I].Toks) {
306 Toks->push_back(Tok); // So that the current token doesn't get lost
307 PP.EnterTokenStream(&Toks->front(), Toks->size(), true, false);
347 delete Toks;
348 LM.DefaultArgs[I].Toks = 0;
353 if (CachedTokens *Toks = LM.ExceptionSpecTokens) {
358 Toks->push_back(Tok); // So that the current token doesn't get lost
359 PP.EnterTokenStream(&Toks->front(), Toks->size(), true, false);
455 assert(!LM.Toks.empty() && "Empty body!");
458 LM.Toks.push_back(Tok);
459 PP.EnterTokenStream(LM.Toks.data(), LM.Toks.size(), true, false);
558 MI.Toks.push_back(Tok);
559 PP.EnterTokenStream(MI.Toks.data(), MI.Toks.size(), true, false);
593 CachedTokens &Toks,
602 Toks.push_back(Tok);
615 Toks.push_back(Tok);
617 ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/false);
621 Toks.push_back(Tok);
623 ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/false);
627 Toks.push_back(Tok);
629 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false);
640 Toks.push_back(Tok);
646 Toks.push_back(Tok);
652 Toks.push_back(Tok);
657 Toks.push_back(Tok);
666 Toks.push_back(Tok);
675 Toks.push_back(Tok);
689 bool Parser::ConsumeAndStoreFunctionPrologue(CachedTokens &Toks) {
691 Toks.push_back(Tok);
697 Toks.push_back(Tok);
705 if (!ConsumeAndStoreUntil(tok::l_paren, tok::l_brace, Toks,
711 Toks.push_back(Tok);
728 Toks, /*StopAtSemi=*/true)) {
737 Toks.push_back(Tok);
743 Toks.push_back(Tok);
755 ConsumeAndStoreUntil(tok::l_brace, tok::r_brace, Toks,
764 Toks.push_back(Tok);