Lines Matching refs:OpTok
1664 /// type-id. OpTok is the operand token (typeof/sizeof/alignof). Returns the
1686 Parser::ParseExprAfterUnaryExprOrTypeTrait(const Token &OpTok,
1691 assert(OpTok.isOneOf(tok::kw_typeof, tok::kw_sizeof, tok::kw___alignof,
1702 if (OpTok.isOneOf(tok::kw_sizeof, tok::kw___alignof, tok::kw_alignof,
1710 SourceLocation LParenLoc = PP.getLocForEndOfToken(OpTok.getLocation());
1713 << OpTok.getName()
1722 if (OpTok.is(tok::kw_typeof) && !getLangOpts().CPlusPlus) {
1723 Diag(Tok, diag::err_expected_after) << OpTok.getIdentifierInfo()
1748 if (getLangOpts().CPlusPlus || OpTok.isNot(tok::kw_typeof)) {
1781 Token OpTok = Tok;
1785 if (Tok.is(tok::ellipsis) && OpTok.is(tok::kw_sizeof)) {
1825 OpTok.getLocation(),
1830 if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof))
1831 Diag(OpTok, diag::warn_cxx98_compat_alignof);
1839 ExprResult Operand = ParseExprAfterUnaryExprOrTypeTrait(OpTok,
1845 if (OpTok.isOneOf(tok::kw_alignof, tok::kw___alignof, tok::kw__Alignof))
1847 else if (OpTok.is(tok::kw_vec_step))
1849 else if (OpTok.is(tok::kw___builtin_omp_required_simd_align))
1853 return Actions.ActOnUnaryExprOrTypeTraitExpr(OpTok.getLocation(),
1859 if (OpTok.isOneOf(tok::kw_alignof, tok::kw__Alignof))
1860 Diag(OpTok, diag::ext_alignof_expr) << OpTok.getIdentifierInfo();
1864 Operand = Actions.ActOnUnaryExprOrTypeTraitExpr(OpTok.getLocation(),