/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 | 1415 if (Tok.isNot(tok::r_paren)) { in ParsePostfixExpressionSuffix() 1425 SkipUntil(tok::r_paren); in ParsePostfixExpressionSuffix() 1426 } else if (Tok.isNot(tok::r_paren)) { in ParsePostfixExpressionSuffix() 1646 SkipUntil(tok::r_paren); in ParseUnaryExprOrTypeTraitExpression() 1749 if (ExpectAndConsume(tok::comma, diag::err_expected_comma, "",tok::r_paren)) in ParseBuiltinPrimaryExpression() 1754 if (Tok.isNot(tok::r_paren)) { in ParseBuiltinPrimaryExpression() 1769 SkipUntil(tok::r_paren); in ParseBuiltinPrimaryExpression() 1773 if (ExpectAndConsume(tok::comma, diag::err_expected_comma, "",tok::r_paren)) in ParseBuiltinPrimaryExpression() 1779 SkipUntil(tok::r_paren); in ParseBuiltinPrimaryExpression() 1801 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() 1316 if (!SkipUntil(tok::r_paren)) in TryParseTypeofSpecifier() 1394 if (Tok.isNot(tok::r_paren)) in isCXXFunctionDeclarator() 1443 if (Tok.is(tok::r_paren)) in TryParseParameterDeclarationClause() 1457 if (Tok.is(tok::r_paren)) in TryParseParameterDeclarationClause() [all …]
|
D | ParseDecl.cpp | 123 SkipUntil(tok::r_paren, true); // skip until ) or ; in ParseGNUAttributes() 127 SkipUntil(tok::r_paren, true); // skip until ) or ; in ParseGNUAttributes() 155 ConsumeAndStoreUntil(tok::r_paren, LA->Toks, true, false); in ParseGNUAttributes() 170 if (ExpectAndConsume(tok::r_paren, diag::err_expected_rparen)) in ParseGNUAttributes() 171 SkipUntil(tok::r_paren, false); in ParseGNUAttributes() 173 if (ExpectAndConsume(tok::r_paren, diag::err_expected_rparen)) { in ParseGNUAttributes() 174 SkipUntil(tok::r_paren, false); in ParseGNUAttributes() 263 (ParmLoc.isValid() ? Tok.is(tok::comma) : Tok.isNot(tok::r_paren))) { in ParseGNUAttributeArgs() 272 SkipUntil(tok::r_paren); in ParseGNUAttributeArgs() 295 SkipUntil(tok::r_paren, false, true); // skip until ')' in ParseGNUAttributeArgs() [all …]
|
D | ParseStmt.cpp | 416 if(ExpectAndConsume(tok::r_paren,diag::err_expected_rparen)) in ParseSEHExceptBlock() 912 if (ExprResult.isInvalid() && !DeclResult && Tok.isNot(tok::r_paren)) { in ParseParenExprOrCondition() 916 if (Tok.isNot(tok::r_paren)) in ParseParenExprOrCondition() 926 while (Tok.is(tok::r_paren)) { in ParseParenExprOrCondition() 1451 SkipUntil(tok::r_paren, false, true); in ParseForStatement() 1458 SkipUntil(tok::r_paren, true, true); in ParseForStatement() 1469 } else if (Tok.is(tok::r_paren)) { in ParseForStatement() 1490 SkipUntil(tok::r_paren, true, true); in ParseForStatement() 1498 if (Tok.isNot(tok::r_paren)) { // for (...;...;) in ParseForStatement() 1813 SkipUntil(tok::r_paren); in ParseAsmStatement() [all …]
|
D | ParseExprCXX.cpp | 114 if (Tok2.is(tok::r_paren)) { in CheckForLParenAfterColonColon() 123 if (Tok3.is(tok::r_paren)) { in CheckForLParenAfterColonColon() 813 if (Tok.isNot(tok::r_paren)) in ParseLambdaExpressionAfterIntroducer() 1076 SkipUntil(tok::r_paren); in ParseCXXTypeid() 1126 SkipUntil(tok::r_paren); in ParseCXXUuidof() 1249 case tok::r_paren: in ParseThrowExpression() 1310 if (Tok.isNot(tok::r_paren)) { in ParseCXXTypeConstructExpression() 1312 SkipUntil(tok::r_paren); in ParseCXXTypeConstructExpression() 1430 if (SkipUntil(tok::r_paren, true, /*DontConsume=*/true)) in ParseCXXCondition() 2350 if (Tok.isNot(tok::r_paren)) { in ParseCXXNewExpression() [all …]
|
D | ParseObjc.cpp | 597 if (ExpectAndConsume(tok::equal, DiagID, "", tok::r_paren)) in ParseObjCPropertyAttribute() 615 SkipUntil(tok::r_paren); in ParseObjCPropertyAttribute() 625 tok::r_paren)) in ParseObjCPropertyAttribute() 633 SkipUntil(tok::r_paren); in ParseObjCPropertyAttribute() 925 if (Tok.is(tok::r_paren)) in ParseObjCTypeName() 930 SkipUntil(tok::r_paren); in ParseObjCTypeName() 1501 if (Tok.isNot(tok::r_paren)) { in ParseObjCAtImplementationDeclaration() 1503 SkipUntil(tok::r_paren, false); // don't stop at ';' in ParseObjCAtImplementationDeclaration() 1758 if (Tok.is(tok::r_paren)) { in ParseObjCSynchronizedStmt() 1852 if (Tok.is(tok::r_paren)) in ParseObjCTryStmt() [all …]
|
D | ParseCXXInlineMethods.cpp | 568 ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil() 588 case tok::r_paren: in ConsumeAndStoreUntil() 678 if (!ConsumeAndStoreUntil(IsLParen ? tok::r_paren : tok::r_brace, in ConsumeAndStoreFunctionPrologue()
|
D | ParseDeclCXX.cpp | 690 "decltype", tok::r_paren)) { in ParseDecltypeSpecifier() 705 if (SkipUntil(tok::r_paren, /*StopAtSemi=*/true, /*DontConsume=*/true)) { in ParseDecltypeSpecifier() 774 "__underlying_type", tok::r_paren)) { in ParseUnderlyingTypeSpecifier() 780 SkipUntil(tok::r_paren); in ParseUnderlyingTypeSpecifier() 963 case tok::r_paren: //(struct foo {...} ) {4} in isValidAfterTypeSpecifier() 1314 if (!SkipUntil(tok::r_paren)) in ParseClassSpecifier() 2759 if (Tok.isNot(tok::r_paren) && ParseExpressionList(ArgExprs, CommaLocs)) { in ParseMemInitializer() 2760 SkipUntil(tok::r_paren); in ParseMemInitializer() 2895 while (Tok.isNot(tok::r_paren)) { in ParseDynamicExceptionSpecification() 3156 SkipUntil(tok::r_paren, false); in ParseCXX11AttributeSpecifier()
|
D | ParsePragma.cpp | 185 if (Tok.isNot(tok::r_paren)) { in HandlePragma() 296 if (Tok.isNot(tok::r_paren)) { in HandlePragma() 496 if (Tok.is(tok::r_paren)) { in HandlePragma()
|
D | Parser.cpp | 191 if ((Tok.is(tok::r_paren) || Tok.is(tok::r_square)) && in ExpectAndConsumeSemi() 283 SkipUntil(tok::r_paren, false, false, StopAtCodeCompletion); in SkipUntil() 301 case tok::r_paren: in SkipUntil() 1266 SkipUntil(tok::r_paren, true, true); in ParseSimpleAsm() 1904 case tok::r_paren : LHSName = "("; DID = diag::err_expected_rparen; break; in diagnoseMissingClose()
|
D | RAIIObjectsForParser.h | 391 Close = tok::r_paren; in BalancedDelimiterTracker()
|
/external/clang/lib/Format/ |
D | TokenAnnotator.cpp | 75 return Tok.isOneOf(tok::r_paren, tok::r_brace, tok::r_square) || in closesScope() 113 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace, in parseAngle() 167 if (CurrentToken->is(tok::r_paren)) { in parseParens() 246 if (CurrentToken->isOneOf(tok::r_paren, tok::r_brace)) in parseSquare() 268 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace() 325 if (Tok->Parent->is(tok::r_paren) && Contexts.size() == 1) { in consumeToken() 382 case tok::r_paren: in consumeToken() 588 } else if (Current.isOneOf(tok::r_paren, tok::greater, tok::comma)) { in determineTokenType() 626 } else if (Current.is(tok::r_paren)) { in determineTokenType() 683 PrevToken->isOneOf(tok::r_paren, tok::r_square) || in determineStarAmpUsage() [all …]
|
D | Format.cpp | 724 if (Current.isOneOf(tok::r_paren, tok::r_square) || in moveStateToNextToken() 1011 State.NextToken->isNot(tok::r_paren) && in mustBreak() 1383 if (Line.Last->isNot(tok::r_paren)) in tryMergeSimpleIf()
|
D | UnwrappedLineParser.cpp | 459 case tok::r_paren: in parseParens()
|
/external/clang/lib/Lex/ |
D | Pragma.cpp | 190 if (Tok.isNot(tok::r_paren)) in Handle_Pragma() 192 if (Tok.is(tok::r_paren)) in Handle_Pragma() 201 if (Tok.is(tok::r_paren)) in Handle_Pragma() 211 if (Tok.isNot(tok::r_paren)) { in Handle_Pragma() 316 else if (Tok.is(tok::r_paren) && NumParens-- == 0) in HandleMicrosoft__pragma() 541 if (Tok.isNot(tok::r_paren)) { in HandlePragmaComment() 593 if (Tok.isNot(tok::r_paren)) { in HandlePragmaMessage() 645 if (Tok.isNot(tok::r_paren)) { in ParsePragmaPushOrPopMacro() 803 if (Tok.isNot(tok::r_paren)) { in HandlePragmaIncludeAlias()
|
D | PPMacroExpansion.cpp | 515 while (Tok.isNot(tok::r_paren)) { in ReadFunctionLikeMacroArgs() 549 } else if (Tok.is(tok::r_paren)) { in ReadFunctionLikeMacroArgs() 593 if (ArgTokens.empty() && Tok.getKind() == tok::r_paren) in ReadFunctionLikeMacroArgs() 1059 if (Tok.isNot(tok::r_paren)) { in EvaluateHasIncludeCommon() 1141 if (Tok.isNot(tok::r_paren)) { in EvaluateBuildingModule() 1300 if (Tok.is(tok::r_paren)) in ExpandBuiltinMacro() 1334 if (Tok.is(tok::r_paren)) in ExpandBuiltinMacro() 1356 while (Tok.isNot(tok::r_paren) && Tok.isNot(tok::eod) && in ExpandBuiltinMacro() 1363 if (!(IsValid = Tok.is(tok::r_paren))) { in ExpandBuiltinMacro()
|
D | PPExpressions.cpp | 137 if (PeekTok.isNot(tok::r_paren)) { in EvaluateDefined() 204 case tok::r_paren: in EvaluateValue() 330 if (PeekTok.is(tok::r_paren)) { in EvaluateValue() 337 if (PeekTok.isNot(tok::r_paren)) { in EvaluateValue() 440 case tok::r_paren: return 0;// Lowest priority, end of expr. in getPrecedence()
|
D | PPDirectives.cpp | 1637 case tok::r_paren: in ReadMacroDefinitionArgList() 1658 if (Tok.isNot(tok::r_paren)) { in ReadMacroDefinitionArgList() 1698 case tok::r_paren: // #define X(A) in ReadMacroDefinitionArgList() 1709 if (Tok.isNot(tok::r_paren)) { in ReadMacroDefinitionArgList()
|
/external/bison/tests/ |
D | existing.at | 152 : LEX_FUNCTION {} func_name '(' opt_param_list r_paren opt_nls 195 | LEX_WHILE '(' exp r_paren opt_nls statement 196 | LEX_DO opt_nls statement LEX_WHILE '(' exp r_paren opt_nls 197 | LEX_FOR '(' NAME LEX_IN NAME r_paren opt_nls statement 198 | LEX_FOR '(' opt_exp semi opt_nls exp semi opt_nls opt_exp r_paren opt_nls statement 199 | LEX_FOR '(' opt_exp semi opt_nls semi opt_nls opt_exp r_paren opt_nls statement 202 | print '(' expression_list r_paren output_redir statement_term 219 : LEX_IF '(' exp r_paren opt_nls statement 220 | LEX_IF '(' exp r_paren opt_nls statement 296 | '(' expression_list r_paren LEX_IN NAME [all …]
|
/external/clang/lib/ARCMigrate/ |
D | Transforms.cpp | 423 if (tok.is(tok::r_paren)) in rewritePropertyAttribute() 442 } while (tok.isNot(tok::comma) && tok.isNot(tok::r_paren)); in rewritePropertyAttribute() 443 if (tok.is(tok::r_paren)) in rewritePropertyAttribute() 452 if (BeforeTok.is(tok::l_paren) && AfterTok.is(tok::r_paren)) { in rewritePropertyAttribute() 505 if (tok.is(tok::r_paren)) { in addPropertyAttribute()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.h | 38 l_paren, r_paren, // ( ) enumerator
|
D | TGLexer.cpp | 112 case ')': return tgtok::r_paren; in LexToken()
|
D | TGParser.cpp | 907 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation() 961 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation() 1033 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation() 1385 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue() 1390 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue()
|
/external/clang/lib/AST/ |
D | CommentSema.cpp | 681 tok::r_paren, tok::r_paren in checkDeprecatedCommand()
|