• Home
  • Raw
  • Download

Lines Matching refs:Tok

38   auto Tok = P.getCurToken();  in ParseOpenMPDirectiveKind()  local
40 Tok.isAnnotation() in ParseOpenMPDirectiveKind()
42 : getOpenMPDirectiveKind(P.getPreprocessor().getSpelling(Tok)); in ParseOpenMPDirectiveKind()
45 Tok = P.getPreprocessor().LookAhead(0); in ParseOpenMPDirectiveKind()
47 Tok.isAnnotation() in ParseOpenMPDirectiveKind()
49 : getOpenMPDirectiveKind(P.getPreprocessor().getSpelling(Tok)); in ParseOpenMPDirectiveKind()
65 assert(Tok.is(tok::annot_pragma_openmp) && "Not an OpenMP directive!"); in ParseOpenMPDeclarativeDirective()
78 if (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclarativeDirective()
79 Diag(Tok, diag::warn_omp_extra_tokens_at_eol) in ParseOpenMPDeclarativeDirective()
89 Diag(Tok, diag::err_omp_unknown_directive); in ParseOpenMPDeclarativeDirective()
112 Diag(Tok, diag::err_omp_unexpected_directive) in ParseOpenMPDeclarativeDirective()
136 assert(Tok.is(tok::annot_pragma_openmp) && "Not an OpenMP directive!"); in ParseOpenMPDeclarativeOrExecutableDirective()
158 if (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclarativeOrExecutableDirective()
159 Diag(Tok, diag::warn_omp_extra_tokens_at_eol) in ParseOpenMPDeclarativeOrExecutableDirective()
165 Directive = Actions.ActOnDeclStmt(Res, Loc, Tok.getLocation()); in ParseOpenMPDeclarativeOrExecutableDirective()
174 PP.EnterToken(Tok); in ParseOpenMPDeclarativeOrExecutableDirective()
180 Diag(Tok, diag::err_omp_immediate_directive) in ParseOpenMPDeclarativeOrExecutableDirective()
208 if (Tok.isAnyIdentifier()) { in ParseOpenMPDeclarativeOrExecutableDirective()
210 DeclarationNameInfo(Tok.getIdentifierInfo(), Tok.getLocation()); in ParseOpenMPDeclarativeOrExecutableDirective()
213 Diag(Tok, diag::err_omp_expected_identifier_for_critical); in ParseOpenMPDeclarativeOrExecutableDirective()
226 while (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclarativeOrExecutableDirective()
228 Tok.isAnnotation() in ParseOpenMPDeclarativeOrExecutableDirective()
231 : getOpenMPClauseKind(PP.getSpelling(Tok)); in ParseOpenMPDeclarativeOrExecutableDirective()
242 if (Tok.is(tok::comma)) in ParseOpenMPDeclarativeOrExecutableDirective()
246 EndLoc = Tok.getLocation(); in ParseOpenMPDeclarativeOrExecutableDirective()
273 Diag(Tok, diag::err_omp_unknown_directive); in ParseOpenMPDeclarativeOrExecutableDirective()
299 while (Tok.isNot(tok::r_paren) && Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPSimpleVarList()
304 Token PrevTok = Tok; in ParseOpenMPSimpleVarList()
317 } else if (Tok.isNot(tok::comma) && Tok.isNot(tok::r_paren) && in ParseOpenMPSimpleVarList()
318 Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPSimpleVarList()
333 if (Tok.is(tok::comma)) { in ParseOpenMPSimpleVarList()
339 Diag(Tok, diag::err_expected) << tok::identifier; in ParseOpenMPSimpleVarList()
366 Diag(Tok, diag::err_omp_unexpected_clause) << getOpenMPClauseName(CKind) in ParseOpenMPClause()
387 Diag(Tok, diag::err_omp_more_one_clause) << getOpenMPDirectiveName(DKind) in ParseOpenMPClause()
402 Diag(Tok, diag::err_omp_more_one_clause) << getOpenMPDirectiveName(DKind) in ParseOpenMPClause()
413 Diag(Tok, diag::err_omp_more_one_clause) << getOpenMPDirectiveName(DKind) in ParseOpenMPClause()
434 Diag(Tok, diag::err_omp_more_one_clause) << getOpenMPDirectiveName(DKind) in ParseOpenMPClause()
454 Diag(Tok, diag::warn_omp_extra_tokens_at_eol) in ParseOpenMPClause()
459 Diag(Tok, diag::err_omp_unexpected_clause) << getOpenMPClauseName(CKind) in ParseOpenMPClause()
516 SourceLocation Loc = Tok.getLocation(); in ParseOpenMPSimpleClause()
525 Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok)); in ParseOpenMPSimpleClause()
526 SourceLocation TypeLoc = Tok.getLocation(); in ParseOpenMPSimpleClause()
527 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSimpleClause()
528 Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPSimpleClause()
535 Tok.getLocation()); in ParseOpenMPSimpleClause()
556 SourceLocation Loc = Tok.getLocation(); in ParseOpenMPClause()
559 return Actions.ActOnOpenMPClause(Kind, Loc, Tok.getLocation()); in ParseOpenMPClause()
580 Kind, Tok.isAnnotation() ? "" : PP.getSpelling(Tok)); in ParseOpenMPSingleExprWithArgClause()
581 SourceLocation KLoc = Tok.getLocation(); in ParseOpenMPSingleExprWithArgClause()
582 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSingleExprWithArgClause()
583 Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPSingleExprWithArgClause()
589 Tok.is(tok::comma)) { in ParseOpenMPSingleExprWithArgClause()
674 SourceLocation Loc = Tok.getLocation(); in ParseOpenMPVarListClause()
699 if (Tok.is(tok::colon)) { in ParseOpenMPVarListClause()
702 Diag(Tok, diag::warn_pragma_expected_colon) << "reduction identifier"; in ParseOpenMPVarListClause()
709 while (IsComma || (Tok.isNot(tok::r_paren) && Tok.isNot(tok::colon) && in ParseOpenMPVarListClause()
710 Tok.isNot(tok::annot_pragma_openmp_end))) { in ParseOpenMPVarListClause()
722 IsComma = Tok.is(tok::comma); in ParseOpenMPVarListClause()
725 else if (Tok.isNot(tok::r_paren) && in ParseOpenMPVarListClause()
726 Tok.isNot(tok::annot_pragma_openmp_end) && in ParseOpenMPVarListClause()
727 (!MayHaveTail || Tok.isNot(tok::colon))) in ParseOpenMPVarListClause()
728 Diag(Tok, diag::err_omp_expected_punc) in ParseOpenMPVarListClause()
736 const bool MustHaveTail = MayHaveTail && Tok.is(tok::colon); in ParseOpenMPVarListClause()
738 ColonLoc = Tok.getLocation(); in ParseOpenMPVarListClause()
755 Kind, Vars, TailExpr, Loc, LOpen, ColonLoc, Tok.getLocation(), in ParseOpenMPVarListClause()