Lines Matching refs:tok

33   if (Tok.is(tok::kw_template) && NextToken().isNot(tok::less)) {
85 assert((Tok.is(tok::kw_export) || Tok.is(tok::kw_template)) &&
123 if (Tok.is(tok::kw_export)) {
129 if (Tok.is(tok::kw_template)) {
142 SkipUntil(tok::r_brace, true, true);
143 if (Tok.is(tok::semi))
160 } while (Tok.is(tok::kw_export) || Tok.is(tok::kw_template));
212 if (Tok.is(tok::kw_using))
225 if (Tok.is(tok::semi)) {
238 SkipUntil(tok::r_brace, true, true);
239 if (Tok.is(tok::semi))
254 if (Tok.is(tok::comma)) {
257 SkipUntil(tok::semi, true, false);
262 ExpectAndConsume(tok::semi, diag::err_expected_semi_declaration);
287 SkipUntil(tok::semi);
305 if (!Tok.is(tok::less)) {
313 if (!Tok.is(tok::greater) && !Tok.is(tok::greatergreater))
316 if (Tok.is(tok::greatergreater)) {
317 Tok.setKind(tok::greater);
320 } else if (Tok.is(tok::greater))
347 SkipUntil(tok::comma, tok::greater, tok::greatergreater, true, true);
351 if (Tok.is(tok::comma)) {
353 } else if (Tok.is(tok::greater) || Tok.is(tok::greatergreater)) {
361 SkipUntil(tok::comma, tok::greater, tok::greatergreater, true, true);
371 if (Tok.is(tok::kw_class)) {
375 case tok::equal:
376 case tok::comma:
377 case tok::greater:
378 case tok::greatergreater:
379 case tok::ellipsis:
382 case tok::identifier:
392 case tok::equal:
393 case tok::comma:
394 case tok::greater:
395 case tok::greatergreater:
403 if (Tok.isNot(tok::kw_typename))
415 if (Next.getKind() == tok::identifier)
419 case tok::equal:
420 case tok::comma:
421 case tok::greater:
422 case tok::greatergreater:
423 case tok::ellipsis:
450 if (Tok.is(tok::kw_template))
469 assert((Tok.is(tok::kw_class) || Tok.is(tok::kw_typename)) &&
473 bool TypenameKeyword = Tok.is(tok::kw_typename);
479 if (Tok.is(tok::ellipsis)) {
492 if (Tok.is(tok::identifier)) {
495 } else if (Tok.is(tok::equal) || Tok.is(tok::comma) ||
496 Tok.is(tok::greater) || Tok.is(tok::greatergreater)) {
509 if (Tok.is(tok::equal)) {
530 assert(Tok.is(tok::kw_template) && "Expected 'template' keyword");
548 if (!Tok.is(tok::kw_class)) {
549 bool Replace = Tok.is(tok::kw_typename) || Tok.is(tok::kw_struct);
551 if (Next.is(tok::identifier) || Next.is(tok::comma) ||
552 Next.is(tok::greater) || Next.is(tok::greatergreater) ||
553 Next.is(tok::ellipsis))
567 if (Tok.is(tok::ellipsis)) {
579 if (Tok.is(tok::identifier)) {
582 } else if (Tok.is(tok::equal) || Tok.is(tok::comma) ||
583 Tok.is(tok::greater) || Tok.is(tok::greatergreater)) {
603 if (Tok.is(tok::equal)) {
609 SkipUntil(tok::comma, tok::greater, tok::greatergreater, true, true);
646 if (Tok.is(tok::equal)) {
658 SkipUntil(tok::comma, tok::greater, true, true);
693 assert(Tok.is(tok::less) && "Must have already parsed the template-name");
702 if (Tok.isNot(tok::greater) && Tok.isNot(tok::greatergreater))
707 SkipUntil(tok::greater, true, !ConsumeLastToken);
713 if (Tok.isNot(tok::greater) && Tok.isNot(tok::greatergreater)) {
722 if (Tok.is(tok::greatergreater)) {
724 if (NextToken().is(tok::greater) || NextToken().is(tok::greatergreater))
733 Tok.setKind(tok::greater);
788 assert(Template && Tok.is(tok::less) &&
806 if (Tok.is(tok::greater))
823 if (Tok.is(tok::greater))
828 Tok.setKind(tok::annot_typename);
839 Tok.setKind(tok::annot_template_id);
884 assert(Tok.is(tok::annot_template_id) && "Requires template-id tokens");
904 Tok.setKind(tok::annot_typename);
917 return Tok.is(tok::comma) || Tok.is(tok::greater) ||
918 Tok.is(tok::greatergreater);
923 if (!Tok.is(tok::identifier) && !Tok.is(tok::coloncolon) &&
924 !Tok.is(tok::annot_cxxscope))
944 if (SS.isSet() && Tok.is(tok::kw_template)) {
949 if (Tok.is(tok::identifier)) {
956 if (Tok.is(tok::ellipsis))
971 } else if (Tok.is(tok::identifier)) {
979 if (Tok.is(tok::ellipsis))
1071 if (!Tok.is(tok::less))
1076 if (Tok.is(tok::greater))
1084 return Tok.is(tok::greater) || Tok.is(tok::comma);
1097 if (Tok.is(tok::ellipsis)) {
1103 SkipUntil(tok::comma, tok::greater, true, true);
1112 if (Tok.isNot(tok::comma)) break;
1232 assert((Tok.is(tok::l_brace) || Tok.is(tok::colon) || Tok.is(tok::kw_try))
1250 if (Tok.is(tok::kw_try)) {
1253 if (Tok.is(tok::colon))
1258 if (Tok.is(tok::l_brace)) {
1279 tok::TokenKind kind = Tok.getKind();
1282 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false);
1286 if (kind == tok::kw_try) {
1287 while (Tok.is(tok::kw_catch)) {
1288 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false);
1289 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false);