Lines Matching refs:OpTok

2431 Parser::ParseExprAfterUnaryExprOrTypeTrait(const Token &OpTok,  in ParseExprAfterUnaryExprOrTypeTrait()  argument
2436 assert(OpTok.isOneOf(tok::kw_typeof, tok::kw_typeof_unqual, tok::kw_sizeof, in ParseExprAfterUnaryExprOrTypeTrait()
2449 if (OpTok.isOneOf(tok::kw_sizeof, tok::kw___datasizeof, tok::kw___alignof, in ParseExprAfterUnaryExprOrTypeTrait()
2458 SourceLocation LParenLoc = PP.getLocForEndOfToken(OpTok.getLocation()); in ParseExprAfterUnaryExprOrTypeTrait()
2461 Diag(OpTok.getLocation(), in ParseExprAfterUnaryExprOrTypeTrait()
2463 << OpTok.getName(); in ParseExprAfterUnaryExprOrTypeTrait()
2466 << OpTok.getName() << FixItHint::CreateInsertion(LParenLoc, "(") in ParseExprAfterUnaryExprOrTypeTrait()
2475 if (OpTok.isOneOf(tok::kw_typeof, tok::kw_typeof_unqual) && in ParseExprAfterUnaryExprOrTypeTrait()
2477 Diag(Tok, diag::err_expected_after) << OpTok.getIdentifierInfo() in ParseExprAfterUnaryExprOrTypeTrait()
2503 !OpTok.isOneOf(tok::kw_typeof, tok::kw_typeof_unqual)) { in ParseExprAfterUnaryExprOrTypeTrait()
2566 Token OpTok = Tok; in ParseUnaryExprOrTypeTraitExpression() local
2570 if (Tok.is(tok::ellipsis) && OpTok.is(tok::kw_sizeof)) { in ParseUnaryExprOrTypeTraitExpression()
2611 OpTok.getLocation(), in ParseUnaryExprOrTypeTraitExpression()
2617 OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof)) in ParseUnaryExprOrTypeTraitExpression()
2618 Diag(OpTok, diag::warn_cxx98_compat_alignof); in ParseUnaryExprOrTypeTraitExpression()
2619 else if (getLangOpts().C23 && OpTok.is(tok::kw_alignof)) in ParseUnaryExprOrTypeTraitExpression()
2620 Diag(OpTok, diag::warn_c23_compat_keyword) << OpTok.getName(); in ParseUnaryExprOrTypeTraitExpression()
2629 ExprResult Operand = ParseExprAfterUnaryExprOrTypeTrait(OpTok, in ParseUnaryExprOrTypeTraitExpression()
2635 switch (OpTok.getKind()) { in ParseUnaryExprOrTypeTraitExpression()
2660 return Actions.ActOnUnaryExprOrTypeTraitExpr(OpTok.getLocation(), in ParseUnaryExprOrTypeTraitExpression()
2666 if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof)) in ParseUnaryExprOrTypeTraitExpression()
2667 Diag(OpTok, diag::ext_alignof_expr) << OpTok.getIdentifierInfo(); in ParseUnaryExprOrTypeTraitExpression()
2671 Operand = Actions.ActOnUnaryExprOrTypeTraitExpr(OpTok.getLocation(), in ParseUnaryExprOrTypeTraitExpression()