Lines Matching refs:OpTok
1734 Parser::ParseExprAfterUnaryExprOrTypeTrait(const Token &OpTok, in ParseExprAfterUnaryExprOrTypeTrait() argument
1739 assert(OpTok.isOneOf(tok::kw_typeof, tok::kw_sizeof, tok::kw___alignof, in ParseExprAfterUnaryExprOrTypeTrait()
1750 if (OpTok.isOneOf(tok::kw_sizeof, tok::kw___alignof, tok::kw_alignof, in ParseExprAfterUnaryExprOrTypeTrait()
1758 SourceLocation LParenLoc = PP.getLocForEndOfToken(OpTok.getLocation()); in ParseExprAfterUnaryExprOrTypeTrait()
1761 << OpTok.getName() in ParseExprAfterUnaryExprOrTypeTrait()
1770 if (OpTok.is(tok::kw_typeof) && !getLangOpts().CPlusPlus) { in ParseExprAfterUnaryExprOrTypeTrait()
1771 Diag(Tok, diag::err_expected_after) << OpTok.getIdentifierInfo() in ParseExprAfterUnaryExprOrTypeTrait()
1796 if (getLangOpts().CPlusPlus || OpTok.isNot(tok::kw_typeof)) { in ParseExprAfterUnaryExprOrTypeTrait()
1829 Token OpTok = Tok; in ParseUnaryExprOrTypeTraitExpression() local
1833 if (Tok.is(tok::ellipsis) && OpTok.is(tok::kw_sizeof)) { in ParseUnaryExprOrTypeTraitExpression()
1873 OpTok.getLocation(), in ParseUnaryExprOrTypeTraitExpression()
1878 if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof)) in ParseUnaryExprOrTypeTraitExpression()
1879 Diag(OpTok, diag::warn_cxx98_compat_alignof); in ParseUnaryExprOrTypeTraitExpression()
1887 ExprResult Operand = ParseExprAfterUnaryExprOrTypeTrait(OpTok, in ParseUnaryExprOrTypeTraitExpression()
1893 if (OpTok.isOneOf(tok::kw_alignof, tok::kw___alignof, tok::kw__Alignof)) in ParseUnaryExprOrTypeTraitExpression()
1895 else if (OpTok.is(tok::kw_vec_step)) in ParseUnaryExprOrTypeTraitExpression()
1897 else if (OpTok.is(tok::kw___builtin_omp_required_simd_align)) in ParseUnaryExprOrTypeTraitExpression()
1901 return Actions.ActOnUnaryExprOrTypeTraitExpr(OpTok.getLocation(), in ParseUnaryExprOrTypeTraitExpression()
1907 if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof)) in ParseUnaryExprOrTypeTraitExpression()
1908 Diag(OpTok, diag::ext_alignof_expr) << OpTok.getIdentifierInfo(); in ParseUnaryExprOrTypeTraitExpression()
1912 Operand = Actions.ActOnUnaryExprOrTypeTraitExpr(OpTok.getLocation(), in ParseUnaryExprOrTypeTraitExpression()