• Home
  • Raw
  • Download

Lines Matching refs:Toks

132       LexTemplateFunctionForLateParsing(LPT->Toks);  in ParseCXXInlineMethodDef()
134 CachedTokens Toks; in ParseCXXInlineMethodDef() local
135 LexTemplateFunctionForLateParsing(Toks); in ParseCXXInlineMethodDef()
146 CachedTokens &Toks = LM->Toks; in ParseCXXInlineMethodDef() local
151 if (ConsumeAndStoreFunctionPrologue(Toks)) { in ParseCXXInlineMethodDef()
163 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); in ParseCXXInlineMethodDef()
169 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false); in ParseCXXInlineMethodDef()
170 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); in ParseCXXInlineMethodDef()
209 CachedTokens &Toks = MI->Toks; in ParseCXXNonStaticMemberInitializer() local
213 Toks.push_back(Tok); in ParseCXXNonStaticMemberInitializer()
219 Toks.push_back(Tok); in ParseCXXNonStaticMemberInitializer()
223 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/true); in ParseCXXNonStaticMemberInitializer()
226 ConsumeAndStoreUntil(tok::comma, Toks, /*StopAtSemi=*/true, in ParseCXXNonStaticMemberInitializer()
236 Toks.push_back(Eof); in ParseCXXNonStaticMemberInitializer()
319 if (CachedTokens *Toks = LM.DefaultArgs[I].Toks) { in ParseLexedMethodDeclaration() local
324 Toks->push_back(Tok); // So that the current token doesn't get lost in ParseLexedMethodDeclaration()
325 PP.EnterTokenStream(&Toks->front(), Toks->size(), true, false); in ParseLexedMethodDeclaration()
365 delete Toks; in ParseLexedMethodDeclaration()
366 LM.DefaultArgs[I].Toks = 0; in ParseLexedMethodDeclaration()
403 assert(!LM.Toks.empty() && "Empty body!"); in ParseLexedMethodDef()
406 LM.Toks.push_back(Tok); in ParseLexedMethodDef()
407 PP.EnterTokenStream(LM.Toks.data(), LM.Toks.size(), true, false); in ParseLexedMethodDef()
509 MI.Toks.push_back(Tok); in ParseLexedMemberInitializer()
510 PP.EnterTokenStream(MI.Toks.data(), MI.Toks.size(), true, false); in ParseLexedMemberInitializer()
544 CachedTokens &Toks, in ConsumeAndStoreUntil() argument
553 Toks.push_back(Tok); in ConsumeAndStoreUntil()
566 Toks.push_back(Tok); in ConsumeAndStoreUntil()
568 ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil()
572 Toks.push_back(Tok); in ConsumeAndStoreUntil()
574 ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil()
578 Toks.push_back(Tok); in ConsumeAndStoreUntil()
580 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil()
591 Toks.push_back(Tok); in ConsumeAndStoreUntil()
597 Toks.push_back(Tok); in ConsumeAndStoreUntil()
603 Toks.push_back(Tok); in ConsumeAndStoreUntil()
608 Toks.push_back(Tok); in ConsumeAndStoreUntil()
617 Toks.push_back(Tok); in ConsumeAndStoreUntil()
626 Toks.push_back(Tok); in ConsumeAndStoreUntil()
640 bool Parser::ConsumeAndStoreFunctionPrologue(CachedTokens &Toks) { in ConsumeAndStoreFunctionPrologue() argument
642 Toks.push_back(Tok); in ConsumeAndStoreFunctionPrologue()
648 Toks.push_back(Tok); in ConsumeAndStoreFunctionPrologue()
656 if (!ConsumeAndStoreUntil(tok::l_paren, tok::l_brace, Toks, in ConsumeAndStoreFunctionPrologue()
662 Toks.push_back(Tok); in ConsumeAndStoreFunctionPrologue()
679 Toks, /*StopAtSemi=*/true)) { in ConsumeAndStoreFunctionPrologue()
688 Toks.push_back(Tok); in ConsumeAndStoreFunctionPrologue()
694 Toks.push_back(Tok); in ConsumeAndStoreFunctionPrologue()
706 ConsumeAndStoreUntil(tok::l_brace, tok::r_brace, Toks, in ConsumeAndStoreFunctionPrologue()
715 Toks.push_back(Tok); in ConsumeAndStoreFunctionPrologue()