Lines Matching refs:tok
149 if (Tok.is(tok::kw_operator)) { in parseOpenMPReductionId()
155 case tok::plus: // '+' in parseOpenMPReductionId()
158 case tok::minus: // '-' in parseOpenMPReductionId()
161 case tok::star: // '*' in parseOpenMPReductionId()
164 case tok::amp: // '&' in parseOpenMPReductionId()
167 case tok::pipe: // '|' in parseOpenMPReductionId()
170 case tok::caret: // '^' in parseOpenMPReductionId()
173 case tok::ampamp: // '&&' in parseOpenMPReductionId()
176 case tok::pipepipe: // '||' in parseOpenMPReductionId()
179 case tok::identifier: // identifier in parseOpenMPReductionId()
184 P.SkipUntil(tok::colon, tok::r_paren, tok::annot_pragma_openmp_end, in parseOpenMPReductionId()
207 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPDeclareReductionDirective()
210 SkipUntil(tok::annot_pragma_openmp_end, StopBeforeMatch); in ParseOpenMPDeclareReductionDirective()
215 if (Name.isEmpty() && Tok.is(tok::annot_pragma_openmp_end)) in ParseOpenMPDeclareReductionDirective()
219 bool IsCorrect = !ExpectAndConsume(tok::colon); in ParseOpenMPDeclareReductionDirective()
221 if (!IsCorrect && Tok.is(tok::annot_pragma_openmp_end)) in ParseOpenMPDeclareReductionDirective()
226 if (Tok.is(tok::colon) || Tok.is(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclareReductionDirective()
231 if (!IsCorrect && Tok.is(tok::annot_pragma_openmp_end)) in ParseOpenMPDeclareReductionDirective()
248 SkipUntil(tok::comma, tok::colon, tok::annot_pragma_openmp_end, in ParseOpenMPDeclareReductionDirective()
252 if (Tok.is(tok::colon) || Tok.is(tok::annot_pragma_openmp_end)) in ParseOpenMPDeclareReductionDirective()
256 if (ExpectAndConsume(tok::comma)) { in ParseOpenMPDeclareReductionDirective()
258 if (Tok.is(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclareReductionDirective()
263 } while (Tok.isNot(tok::annot_pragma_openmp_end)); in ParseOpenMPDeclareReductionDirective()
266 SkipUntil(tok::annot_pragma_openmp_end, StopBeforeMatch); in ParseOpenMPDeclareReductionDirective()
270 if (!IsCorrect && Tok.is(tok::annot_pragma_openmp_end)) in ParseOpenMPDeclareReductionDirective()
274 if (ExpectAndConsume(tok::colon)) in ParseOpenMPDeclareReductionDirective()
277 if (Tok.is(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclareReductionDirective()
299 if (CombinerResult.isInvalid() && Tok.isNot(tok::r_paren) && in ParseOpenMPDeclareReductionDirective()
300 Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclareReductionDirective()
307 if (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclareReductionDirective()
309 if (Tok.is(tok::identifier) && in ParseOpenMPDeclareReductionDirective()
319 BalancedDelimiterTracker T(*this, tok::l_paren, in ParseOpenMPDeclareReductionDirective()
320 tok::annot_pragma_openmp_end); in ParseOpenMPDeclareReductionDirective()
324 if (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclareReductionDirective()
334 if (InitializerResult.isInvalid() && Tok.isNot(tok::r_paren) && in ParseOpenMPDeclareReductionDirective()
335 Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclareReductionDirective()
428 while (Tok.isNot(tok::annot_pragma_openmp_end)) { in parseDeclareSimdClauses()
429 if (Tok.isNot(tok::identifier)) in parseDeclareSimdClauses()
486 if (Tok.is(tok::comma)) in parseDeclareSimdClauses()
515 if (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOMPDeclareSimdClauses()
518 while (Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOMPDeclareSimdClauses()
549 assert(Tok.is(tok::annot_pragma_openmp) && "Not an OpenMP directive!"); in ParseOpenMPDeclarativeDirectiveWithExtDecl()
562 if (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclarativeDirectiveWithExtDecl()
565 SkipUntil(tok::annot_pragma_openmp_end, StopBeforeMatch); in ParseOpenMPDeclarativeDirectiveWithExtDecl()
579 if (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclarativeDirectiveWithExtDecl()
582 while (Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPDeclarativeDirectiveWithExtDecl()
597 while(Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclarativeDirectiveWithExtDecl()
605 if (Tok.is(tok::annot_pragma_openmp)) in ParseOpenMPDeclarativeDirectiveWithExtDecl()
607 else if (Tok.isNot(tok::r_brace) && !isEofOrEom()) { in ParseOpenMPDeclarativeDirectiveWithExtDecl()
628 if (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclarativeDirectiveWithExtDecl()
631 while (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclarativeDirectiveWithExtDecl()
634 if (Tok.is(tok::identifier)) { in ParseOpenMPDeclarativeDirectiveWithExtDecl()
655 if (Tok.is(tok::comma)) in ParseOpenMPDeclarativeDirectiveWithExtDecl()
658 SkipUntil(tok::annot_pragma_openmp_end, StopBeforeMatch); in ParseOpenMPDeclarativeDirectiveWithExtDecl()
671 Tok.isNot(tok::eof) && Tok.isNot(tok::r_brace)) { in ParseOpenMPDeclarativeDirectiveWithExtDecl()
676 if (Tok.isAnnotation() && Tok.is(tok::annot_pragma_openmp)) { in ParseOpenMPDeclarativeDirectiveWithExtDecl()
689 if (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclarativeDirectiveWithExtDecl()
692 SkipUntil(tok::annot_pragma_openmp_end, StopBeforeMatch); in ParseOpenMPDeclarativeDirectiveWithExtDecl()
748 while (Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPDeclarativeDirectiveWithExtDecl()
782 assert(Tok.is(tok::annot_pragma_openmp) && "Not an OpenMP directive!"); in ParseOpenMPDeclarativeOrExecutableDirective()
809 if (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclarativeOrExecutableDirective()
812 SkipUntil(tok::annot_pragma_openmp_end, StopBeforeMatch); in ParseOpenMPDeclarativeOrExecutableDirective()
818 SkipUntil(tok::annot_pragma_openmp_end); in ParseOpenMPDeclarativeOrExecutableDirective()
826 if (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclarativeOrExecutableDirective()
829 while (Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPDeclarativeOrExecutableDirective()
835 SkipUntil(tok::annot_pragma_openmp_end); in ParseOpenMPDeclarativeOrExecutableDirective()
838 if (PP.LookAhead(0).is(tok::l_paren)) { in ParseOpenMPDeclarativeOrExecutableDirective()
889 BalancedDelimiterTracker T(*this, tok::l_paren, in ParseOpenMPDeclarativeOrExecutableDirective()
890 tok::annot_pragma_openmp_end); in ParseOpenMPDeclarativeOrExecutableDirective()
903 if (Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPDeclarativeOrExecutableDirective()
914 while (Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPDeclarativeOrExecutableDirective()
931 if (Tok.is(tok::comma)) in ParseOpenMPDeclarativeOrExecutableDirective()
977 SkipUntil(tok::annot_pragma_openmp_end); in ParseOpenMPDeclarativeOrExecutableDirective()
981 SkipUntil(tok::annot_pragma_openmp_end); in ParseOpenMPDeclarativeOrExecutableDirective()
997 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSimpleVarList()
1005 while (Tok.isNot(tok::r_paren) && Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPSimpleVarList()
1016 SkipUntil(tok::comma, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPSimpleVarList()
1021 SkipUntil(tok::comma, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPSimpleVarList()
1023 } else if (Tok.isNot(tok::comma) && Tok.isNot(tok::r_paren) && in ParseOpenMPSimpleVarList()
1024 Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPSimpleVarList()
1026 SkipUntil(tok::comma, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPSimpleVarList()
1029 << tok::identifier in ParseOpenMPSimpleVarList()
1035 if (Tok.is(tok::comma)) { in ParseOpenMPSimpleVarList()
1041 Diag(Tok, diag::err_expected) << tok::identifier; in ParseOpenMPSimpleVarList()
1117 if (CKind == OMPC_ordered && PP.LookAhead(/*N=*/0).isNot(tok::l_paren)) in ParseOpenMPClause()
1197 SkipUntil(tok::annot_pragma_openmp_end, StopBeforeMatch); in ParseOpenMPClause()
1203 SkipUntil(tok::comma, tok::annot_pragma_openmp_end, StopBeforeMatch); in ParseOpenMPClause()
1214 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPParensExpr()
1287 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSimpleClause()
1295 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSimpleClause()
1296 Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPSimpleClause()
1357 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSingleExprWithArgClause()
1378 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSingleExprWithArgClause()
1379 Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPSingleExprWithArgClause()
1381 if (Tok.is(tok::comma)) { in ParseOpenMPSingleExprWithArgClause()
1390 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSingleExprWithArgClause()
1391 Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPSingleExprWithArgClause()
1395 if (Tok.is(tok::colon)) in ParseOpenMPSingleExprWithArgClause()
1404 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSingleExprWithArgClause()
1405 Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPSingleExprWithArgClause()
1410 Tok.is(tok::comma)) in ParseOpenMPSingleExprWithArgClause()
1416 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSingleExprWithArgClause()
1417 Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPSingleExprWithArgClause()
1419 if (Arg.back() == OMPC_DIST_SCHEDULE_static && Tok.is(tok::comma)) in ParseOpenMPSingleExprWithArgClause()
1426 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSingleExprWithArgClause()
1427 Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPSingleExprWithArgClause()
1430 if (Tok.is(tok::colon)) in ParseOpenMPSingleExprWithArgClause()
1438 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSingleExprWithArgClause()
1439 Tok.isNot(tok::annot_pragma_openmp_end)) in ParseOpenMPSingleExprWithArgClause()
1447 if (Tok.is(tok::colon)) in ParseOpenMPSingleExprWithArgClause()
1482 case tok::plus: in ParseReductionId()
1485 case tok::minus: in ParseReductionId()
1488 case tok::star: in ParseReductionId()
1491 case tok::amp: in ParseReductionId()
1494 case tok::pipe: in ParseReductionId()
1497 case tok::caret: in ParseReductionId()
1500 case tok::ampamp: in ParseReductionId()
1503 case tok::pipepipe: in ParseReductionId()
1532 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPVarList()
1538 BalancedDelimiterTracker LinearT(*this, tok::l_paren, in ParseOpenMPVarList()
1539 tok::annot_pragma_openmp_end); in ParseOpenMPVarList()
1550 SkipUntil(tok::colon, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPVarList()
1553 if (Tok.is(tok::colon)) in ParseOpenMPVarList()
1565 Kind, Tok.is(tok::identifier) ? PP.getSpelling(Tok) : "")); in ParseOpenMPVarList()
1569 SkipUntil(tok::colon, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPVarList()
1580 if (Tok.is(tok::colon)) in ParseOpenMPVarList()
1589 if (Tok.is(tok::identifier) && PP.LookAhead(0).is(tok::l_paren)) { in ParseOpenMPVarList()
1603 return Tok.isOneOf(tok::identifier, tok::kw_delete); in ParseOpenMPVarList()
1618 if (PP.LookAhead(0).is(tok::colon)) { in ParseOpenMPVarList()
1624 } else if (PP.LookAhead(0).is(tok::comma)) { in ParseOpenMPVarList()
1626 PP.LookAhead(2).is(tok::colon)) { in ParseOpenMPVarList()
1659 if (Tok.is(tok::colon)) in ParseOpenMPVarList()
1673 while (IsComma || (Tok.isNot(tok::r_paren) && Tok.isNot(tok::colon) && in ParseOpenMPVarList()
1674 Tok.isNot(tok::annot_pragma_openmp_end))) { in ParseOpenMPVarList()
1682 SkipUntil(tok::comma, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPVarList()
1686 IsComma = Tok.is(tok::comma); in ParseOpenMPVarList()
1689 else if (Tok.isNot(tok::r_paren) && in ParseOpenMPVarList()
1690 Tok.isNot(tok::annot_pragma_openmp_end) && in ParseOpenMPVarList()
1691 (!MayHaveTail || Tok.isNot(tok::colon))) in ParseOpenMPVarList()
1703 const bool MustHaveTail = MayHaveTail && Tok.is(tok::colon); in ParseOpenMPVarList()
1712 SkipUntil(tok::comma, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPVarList()