/external/clang/test/Preprocessor/ |
D | directive-invalid.c | 4 #define r_paren ) macro 5 #if defined( x r_paren // expected-error {{missing ')' after 'defined'}} \
|
/external/clang/lib/Parse/ |
D | ParseExpr.cpp | 1447 if (Tok.isNot(tok::r_paren)) { in ParsePostfixExpressionSuffix() 1457 SkipUntil(tok::r_paren); in ParsePostfixExpressionSuffix() 1458 } else if (Tok.isNot(tok::r_paren)) { in ParsePostfixExpressionSuffix() 1678 SkipUntil(tok::r_paren); in ParseUnaryExprOrTypeTraitExpression() 1777 if (ExpectAndConsume(tok::comma, diag::err_expected_comma, "",tok::r_paren)) in ParseBuiltinPrimaryExpression() 1782 if (Tok.isNot(tok::r_paren)) { in ParseBuiltinPrimaryExpression() 1797 SkipUntil(tok::r_paren); in ParseBuiltinPrimaryExpression() 1801 if (ExpectAndConsume(tok::comma, diag::err_expected_comma, "",tok::r_paren)) in ParseBuiltinPrimaryExpression() 1807 SkipUntil(tok::r_paren); in ParseBuiltinPrimaryExpression() 1829 SkipUntil(tok::r_paren); in ParseBuiltinPrimaryExpression() [all …]
|
D | ParseTentative.cpp | 219 if (!SkipUntil(tok::r_paren)) in TryParseInitDeclaratorList() 373 if (Context == TypeIdInParens && Tok.is(tok::r_paren)) { in isCXXTypeId() 523 if (!SkipUntil(tok::r_paren, false)) { in isCXX11AttributeSpecifier() 651 (Tok.is(tok::r_paren) || // 'int()' is a function. in TryParseDeclarator() 653 (Tok.is(tok::ellipsis) && NextToken().is(tok::r_paren)) || in TryParseDeclarator() 675 if (Tok.isNot(tok::r_paren)) in TryParseDeclarator() 1303 if (!SkipUntil(tok::r_paren)) in TryParseTypeofSpecifier() 1381 if (Tok.isNot(tok::r_paren)) in isCXXFunctionDeclarator() 1430 if (Tok.is(tok::r_paren)) in TryParseParameterDeclarationClause() 1444 if (Tok.is(tok::r_paren)) in TryParseParameterDeclarationClause() [all …]
|
D | ParseDecl.cpp | 118 SkipUntil(tok::r_paren, true); // skip until ) or ; in ParseGNUAttributes() 122 SkipUntil(tok::r_paren, true); // skip until ) or ; in ParseGNUAttributes() 150 ConsumeAndStoreUntil(tok::r_paren, LA->Toks, true, false); in ParseGNUAttributes() 164 if (ExpectAndConsume(tok::r_paren, diag::err_expected_rparen)) in ParseGNUAttributes() 165 SkipUntil(tok::r_paren, false); in ParseGNUAttributes() 167 if (ExpectAndConsume(tok::r_paren, diag::err_expected_rparen)) { in ParseGNUAttributes() 168 SkipUntil(tok::r_paren, false); in ParseGNUAttributes() 242 (ParmLoc.isValid() ? Tok.is(tok::comma) : Tok.isNot(tok::r_paren))) { in ParseGNUAttributeArgs() 251 SkipUntil(tok::r_paren); in ParseGNUAttributeArgs() 274 SkipUntil(tok::r_paren, false, true); // skip until ')' in ParseGNUAttributeArgs() [all …]
|
D | ParseStmt.cpp | 381 if(ExpectAndConsume(tok::r_paren,diag::err_expected_rparen)) in ParseSEHExceptBlock() 832 if (ExprResult.isInvalid() && !DeclResult && Tok.isNot(tok::r_paren)) { in ParseParenExprOrCondition() 836 if (Tok.isNot(tok::r_paren)) in ParseParenExprOrCondition() 846 while (Tok.is(tok::r_paren)) { in ParseParenExprOrCondition() 1379 SkipUntil(tok::r_paren, false, true); in ParseForStatement() 1386 SkipUntil(tok::r_paren, true, true); in ParseForStatement() 1397 } else if (Tok.is(tok::r_paren)) { in ParseForStatement() 1418 SkipUntil(tok::r_paren, true, true); in ParseForStatement() 1426 if (Tok.isNot(tok::r_paren)) { // for (...;...;) in ParseForStatement() 1756 SkipUntil(tok::r_paren); in ParseAsmStatement() [all …]
|
D | ParseExprCXX.cpp | 769 if (Tok.isNot(tok::r_paren)) in ParseLambdaExpressionAfterIntroducer() 1022 SkipUntil(tok::r_paren); in ParseCXXTypeid() 1072 SkipUntil(tok::r_paren); in ParseCXXUuidof() 1195 case tok::r_paren: in ParseThrowExpression() 1256 if (Tok.isNot(tok::r_paren)) { in ParseCXXTypeConstructExpression() 1258 SkipUntil(tok::r_paren); in ParseCXXTypeConstructExpression() 1375 if (SkipUntil(tok::r_paren, true, /*DontConsume=*/true)) in ParseCXXCondition() 2290 if (Tok.isNot(tok::r_paren)) { in ParseCXXNewExpression() 2565 SkipUntil(tok::r_paren); in ParseBinaryTypeTrait() 2570 SkipUntil(tok::r_paren); in ParseBinaryTypeTrait() [all …]
|
D | ParseObjc.cpp | 595 if (ExpectAndConsume(tok::equal, DiagID, "", tok::r_paren)) in ParseObjCPropertyAttribute() 613 SkipUntil(tok::r_paren); in ParseObjCPropertyAttribute() 623 tok::r_paren)) in ParseObjCPropertyAttribute() 631 SkipUntil(tok::r_paren); in ParseObjCPropertyAttribute() 923 if (Tok.is(tok::r_paren)) in ParseObjCTypeName() 928 SkipUntil(tok::r_paren); in ParseObjCTypeName() 1496 if (Tok.isNot(tok::r_paren)) { in ParseObjCAtImplementationDeclaration() 1498 SkipUntil(tok::r_paren, false); // don't stop at ';' in ParseObjCAtImplementationDeclaration() 1753 if (Tok.is(tok::r_paren)) { in ParseObjCSynchronizedStmt() 1847 if (Tok.is(tok::r_paren)) in ParseObjCTryStmt() [all …]
|
D | ParsePragma.cpp | 88 if (Tok.isNot(tok::r_paren)) { in HandlePragma() 204 if (Tok.isNot(tok::r_paren)) { in HandlePragma() 384 if (Tok.is(tok::r_paren)) { in HandlePragma()
|
D | ParseCXXInlineMethods.cpp | 549 ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil() 569 case tok::r_paren: in ConsumeAndStoreUntil() 659 if (!ConsumeAndStoreUntil(IsLParen ? tok::r_paren : tok::r_brace, in ConsumeAndStoreFunctionPrologue()
|
D | ParseDeclCXX.cpp | 683 "decltype", tok::r_paren)) { in ParseDecltypeSpecifier() 697 SkipUntil(tok::r_paren); in ParseDecltypeSpecifier() 755 "__underlying_type", tok::r_paren)) { in ParseUnderlyingTypeSpecifier() 761 SkipUntil(tok::r_paren); in ParseUnderlyingTypeSpecifier() 940 case tok::r_paren: //(struct foo {...} ) {4} in isValidAfterTypeSpecifier() 2577 if (Tok.isNot(tok::r_paren) && ParseExpressionList(ArgExprs, CommaLocs)) { in ParseMemInitializer() 2578 SkipUntil(tok::r_paren); in ParseMemInitializer() 2713 while (Tok.isNot(tok::r_paren)) { in ParseDynamicExceptionSpecification() 2967 SkipUntil(tok::r_paren, false); in ParseCXX11AttributeSpecifier()
|
D | Parser.cpp | 210 if ((Tok.is(tok::r_paren) || Tok.is(tok::r_square)) && in ExpectAndConsumeSemi() 302 SkipUntil(tok::r_paren, false, false, StopAtCodeCompletion); in SkipUntil() 320 case tok::r_paren: in SkipUntil() 1274 SkipUntil(tok::r_paren, true, true); in ParseSimpleAsm() 1910 case tok::r_paren : LHSName = "("; DID = diag::err_expected_rparen; break; in diagnoseMissingClose()
|
D | RAIIObjectsForParser.h | 391 Close = tok::r_paren; in BalancedDelimiterTracker()
|
/external/bison/tests/ |
D | existing.at | 108 : LEX_FUNCTION {} func_name '(' opt_param_list r_paren opt_nls 151 | LEX_WHILE '(' exp r_paren opt_nls statement 152 | LEX_DO opt_nls statement LEX_WHILE '(' exp r_paren opt_nls 153 | LEX_FOR '(' NAME LEX_IN NAME r_paren opt_nls statement 154 | LEX_FOR '(' opt_exp semi opt_nls exp semi opt_nls opt_exp r_paren opt_nls statement 155 | LEX_FOR '(' opt_exp semi opt_nls semi opt_nls opt_exp r_paren opt_nls statement 158 | print '(' expression_list r_paren output_redir statement_term 175 : LEX_IF '(' exp r_paren opt_nls statement 176 | LEX_IF '(' exp r_paren opt_nls statement 252 | '(' expression_list r_paren LEX_IN NAME [all …]
|
D | testsuite | 55002 : LEX_FUNCTION {} func_name '(' opt_param_list r_paren opt_nls 55045 | LEX_WHILE '(' exp r_paren opt_nls statement 55046 | LEX_DO opt_nls statement LEX_WHILE '(' exp r_paren opt_nls 55047 | LEX_FOR '(' NAME LEX_IN NAME r_paren opt_nls statement 55048 | LEX_FOR '(' opt_exp semi opt_nls exp semi opt_nls opt_exp r_paren opt_nls statement 55049 | LEX_FOR '(' opt_exp semi opt_nls semi opt_nls opt_exp r_paren opt_nls statement 55052 | print '(' expression_list r_paren output_redir statement_term 55069 : LEX_IF '(' exp r_paren opt_nls statement 55070 | LEX_IF '(' exp r_paren opt_nls statement 55146 | '(' expression_list r_paren LEX_IN NAME [all …]
|
/external/clang/lib/Lex/ |
D | Pragma.cpp | 191 if (Tok.isNot(tok::r_paren)) in Handle_Pragma() 193 if (Tok.is(tok::r_paren)) in Handle_Pragma() 202 if (Tok.is(tok::r_paren)) in Handle_Pragma() 212 if (Tok.isNot(tok::r_paren)) { in Handle_Pragma() 292 else if (Tok.is(tok::r_paren) && NumParens-- == 0) in HandleMicrosoft__pragma() 545 if (Tok.isNot(tok::r_paren)) { in HandlePragmaComment() 621 if (Tok.isNot(tok::r_paren)) { in HandlePragmaMessage() 673 if (Tok.isNot(tok::r_paren)) { in ParsePragmaPushOrPopMacro() 834 if (Tok.isNot(tok::r_paren)) { in HandlePragmaIncludeAlias()
|
D | PPMacroExpansion.cpp | 377 while (Tok.isNot(tok::r_paren)) { in ReadFunctionLikeMacroArgs() 398 } else if (Tok.is(tok::r_paren)) { in ReadFunctionLikeMacroArgs() 445 if (ArgTokens.empty() && Tok.getKind() == tok::r_paren) in ReadFunctionLikeMacroArgs() 860 if (Tok.isNot(tok::r_paren)) { in EvaluateHasIncludeCommon() 1059 if (Tok.is(tok::r_paren)) in ExpandBuiltinMacro() 1112 do Lex(Tok); while (!(Tok.is(tok::r_paren) || Tok.is(tok::eod))); in ExpandBuiltinMacro() 1128 if (!(IsValid = Tok.is(tok::r_paren))) in ExpandBuiltinMacro()
|
D | PPExpressions.cpp | 130 if (PeekTok.isNot(tok::r_paren)) { in EvaluateDefined() 195 case tok::r_paren: in EvaluateValue() 317 if (PeekTok.is(tok::r_paren)) { in EvaluateValue() 324 if (PeekTok.isNot(tok::r_paren)) { in EvaluateValue() 427 case tok::r_paren: return 0;// Lowest priority, end of expr. in getPrecedence()
|
D | PPDirectives.cpp | 1607 case tok::r_paren: in ReadMacroDefinitionArgList() 1622 if (Tok.isNot(tok::r_paren)) { in ReadMacroDefinitionArgList() 1662 case tok::r_paren: // #define X(A) in ReadMacroDefinitionArgList() 1673 if (Tok.isNot(tok::r_paren)) { in ReadMacroDefinitionArgList()
|
D | Lexer.cpp | 2866 Kind = tok::r_paren; in LexTokenInternal()
|
/external/clang/lib/ARCMigrate/ |
D | Transforms.cpp | 413 if (tok.is(tok::r_paren)) in rewritePropertyAttribute() 432 } while (tok.isNot(tok::comma) && tok.isNot(tok::r_paren)); in rewritePropertyAttribute() 433 if (tok.is(tok::r_paren)) in rewritePropertyAttribute() 442 if (BeforeTok.is(tok::l_paren) && AfterTok.is(tok::r_paren)) { in rewritePropertyAttribute() 495 if (tok.is(tok::r_paren)) { in addPropertyAttribute()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.h | 37 l_paren, r_paren, // ( ) enumerator
|
D | TGLexer.cpp | 113 case ')': return tgtok::r_paren; in LexToken()
|
D | TGParser.cpp | 914 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation() 966 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation() 1038 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation() 1387 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue() 1392 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue()
|
/external/clang/include/clang/Basic/ |
D | TokenKinds.def | 142 PUNCTUATOR(r_paren, ")")
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 296 return Tok.getKind() == tok::l_paren || Tok.getKind() == tok::r_paren; in isTokenParen()
|