/external/clang/lib/Parse/ |
D | ParseExpr.cpp | 956 Validator->WantRemainingKeywords = Tok.isNot(tok::r_paren); in ParseCastExpression() 963 Tok.is(tok::r_paren) ? nullptr : &Replacement); in ParseCastExpression() 1519 if (Tok.isNot(tok::r_paren)) { in ParsePostfixExpressionSuffix() 1534 SkipUntil(tok::r_paren, StopAtSemi); in ParsePostfixExpressionSuffix() 1535 } else if (Tok.isNot(tok::r_paren)) { in ParsePostfixExpressionSuffix() 1546 SkipUntil(tok::r_paren, StopAtSemi); in ParsePostfixExpressionSuffix() 1803 SkipUntil(tok::r_paren, StopAtSemi); in ParseUnaryExprOrTypeTraitExpression() 1911 SkipUntil(tok::r_paren, StopAtSemi); in ParseBuiltinPrimaryExpression() 1917 if (Tok.isNot(tok::r_paren)) { in ParseBuiltinPrimaryExpression() 1918 Diag(Tok, diag::err_expected) << tok::r_paren; in ParseBuiltinPrimaryExpression() [all …]
|
D | ParseTentative.cpp | 162 if (!SkipUntil(tok::r_paren)) in TryConsumeDeclarationSpecifier() 193 if (!SkipUntil(tok::r_paren)) in TryConsumeDeclarationSpecifier() 299 if (!SkipUntil(tok::r_paren, StopAtSemi)) in TryParseInitDeclaratorList() 442 if (Context == TypeIdInParens && Tok.is(tok::r_paren)) { in isCXXTypeId() 592 if (!SkipUntil(tok::r_paren)) { in isCXX11AttributeSpecifier() 692 if (NextToken().is(tok::r_paren)) { in TryParseOperatorId() 821 (Tok.is(tok::r_paren) || // 'int()' is a function. in TryParseDeclarator() 823 (Tok.is(tok::ellipsis) && NextToken().is(tok::r_paren)) || in TryParseDeclarator() 841 if (Tok.isNot(tok::r_paren)) in TryParseDeclarator() 1011 WantTypeSpecifiers = Next.isOneOf(tok::l_paren, tok::r_paren, tok::greater, in TentativeParseCCC() [all …]
|
D | ParseOpenMP.cpp | 357 while (Tok.isNot(tok::r_paren) && Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPSimpleVarList() 368 SkipUntil(tok::comma, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPSimpleVarList() 373 SkipUntil(tok::comma, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPSimpleVarList() 375 } else if (Tok.isNot(tok::comma) && Tok.isNot(tok::r_paren) && in ParseOpenMPSimpleVarList() 378 SkipUntil(tok::comma, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPSimpleVarList() 629 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSimpleClause() 699 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSingleExprWithArgClause() 854 SkipUntil(tok::colon, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPVarListClause() 870 SkipUntil(tok::colon, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPVarListClause() 971 while (IsComma || (Tok.isNot(tok::r_paren) && Tok.isNot(tok::colon) && in ParseOpenMPVarListClause() [all …]
|
D | ParseDecl.cpp | 133 SkipUntil(tok::r_paren, StopAtSemi); // skip until ) or ; in ParseGNUAttributes() 137 SkipUntil(tok::r_paren, StopAtSemi); // skip until ) or ; in ParseGNUAttributes() 179 ConsumeAndStoreUntil(tok::r_paren, LA->Toks, true, false); in ParseGNUAttributes() 187 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes() 188 SkipUntil(tok::r_paren, StopAtSemi); in ParseGNUAttributes() 190 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes() 191 SkipUntil(tok::r_paren, StopAtSemi); in ParseGNUAttributes() 252 if (Tok.isNot(tok::r_paren)) in ParseAttributeWithTypeArg() 289 IsIdentifierArg = Next.isOneOf(tok::r_paren, tok::comma); in ParseAttributeArgsCommon() 296 if (!ArgExprs.empty() ? Tok.is(tok::comma) : Tok.isNot(tok::r_paren)) { in ParseAttributeArgsCommon() [all …]
|
D | ParsePragma.cpp | 595 if (Tok.isNot(tok::r_paren)) { in HandlePragmaMSSection() 641 else if (Tok.isNot(tok::r_paren)) { in HandlePragmaMSSegment() 647 } else if (Tok.isNot(tok::r_paren)) { in HandlePragmaMSSegment() 655 if (Tok.isNot(tok::r_paren)) { in HandlePragmaMSSegment() 677 if (Tok.isNot(tok::r_paren)) { in HandlePragmaMSSegment() 745 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSInitSeg() 911 if (Tok.isNot(tok::r_paren)) { in HandlePragma() 1024 if (Tok.isNot(tok::r_paren)) { in HandlePragma() 1229 if (Tok.is(tok::r_paren)) { in HandlePragma() 1550 } else if (Tok.is(tok::r_paren)) { in HandlePragma() [all …]
|
D | ParseStmtAsm.cpp | 658 SkipUntil(tok::r_paren, StopAtSemi); in ParseAsmStatement() 685 if (Tok.is(tok::r_paren)) { in ParseAsmStatement() 732 if (Tok.isNot(tok::r_paren)) { in ParseAsmStatement() 781 SkipUntil(tok::r_paren, StopAtSemi); in ParseAsmOperandsOpt() 795 SkipUntil(tok::r_paren, StopAtSemi); in ParseAsmOperandsOpt() 802 SkipUntil(tok::r_paren, StopAtSemi); in ParseAsmOperandsOpt() 812 SkipUntil(tok::r_paren, StopAtSemi); in ParseAsmOperandsOpt()
|
D | ParseCXXInlineMethods.cpp | 688 ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil() 708 case tok::r_paren: in ConsumeAndStoreUntil() 808 if (!ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/true)) { in ConsumeAndStoreFunctionPrologue() 809 Diag(Tok.getLocation(), diag::err_expected) << tok::r_paren; in ConsumeAndStoreFunctionPrologue() 887 tok::TokenKind CloseKind = IsLParen ? tok::r_paren : tok::r_brace; in ConsumeAndStoreFunctionPrologue() 1028 ? tok::semi : tok::r_paren); in ConsumeAndStoreInitializer() 1148 ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreInitializer() 1169 case tok::r_paren: in ConsumeAndStoreInitializer()
|
D | ParseExprCXX.cpp | 124 if (NextTok.is(tok::r_paren)) { in CheckForLParenAfterColonColon() 1083 if (Tok.isNot(tok::r_paren)) { in ParseLambdaExpressionAfterIntroducer() 1379 SkipUntil(tok::r_paren, StopAtSemi); in ParseCXXTypeid() 1429 SkipUntil(tok::r_paren, StopAtSemi); in ParseCXXUuidof() 1549 case tok::r_paren: in ParseThrowExpression() 1625 if (Tok.isNot(tok::r_paren)) { in ParseCXXTypeConstructExpression() 1631 SkipUntil(tok::r_paren, StopAtSemi); in ParseCXXTypeConstructExpression() 1749 if (SkipUntil(tok::r_paren, StopAtSemi | StopBeforeMatch)) in ParseCXXCondition() 2700 if (Tok.isNot(tok::r_paren)) { in ParseCXXNewExpression() 2970 SkipUntil(tok::r_paren, StopAtSemi); in ParseArrayTypeTrait() [all …]
|
D | ParseObjc.cpp | 918 SkipUntil(tok::r_paren, StopAtSemi); in ParseObjCPropertyAttribute() 936 SkipUntil(tok::r_paren, StopAtSemi); in ParseObjCPropertyAttribute() 946 SkipUntil(tok::r_paren, StopAtSemi); in ParseObjCPropertyAttribute() 986 SkipUntil(tok::r_paren, StopAtSemi); in ParseObjCPropertyAttribute() 1316 if (Tok.is(tok::r_paren)) in ParseObjCTypeName() 1321 SkipUntil(tok::r_paren, StopAtSemi); in ParseObjCTypeName() 2154 if (Tok.isNot(tok::r_paren)) { in ParseObjCAtImplementationDeclaration() 2155 Diag(Tok, diag::err_expected) << tok::r_paren; in ParseObjCAtImplementationDeclaration() 2156 SkipUntil(tok::r_paren); // don't stop at ';' in ParseObjCAtImplementationDeclaration() 2431 if (Tok.is(tok::r_paren)) { in ParseObjCSynchronizedStmt() [all …]
|
D | ParseStmt.cpp | 497 if (ExpectAndConsume(tok::r_paren)) in ParseSEHExceptBlock() 1058 if (ExprResult.isInvalid() && !DeclResult && Tok.isNot(tok::r_paren)) { in ParseParenExprOrCondition() 1062 if (Tok.isNot(tok::r_paren)) in ParseParenExprOrCondition() 1072 while (Tok.is(tok::r_paren)) { in ParseParenExprOrCondition() 1628 SkipUntil(tok::r_paren, StopBeforeMatch); in ParseForStatement() 1635 SkipUntil(tok::r_paren, StopAtSemi | StopBeforeMatch); in ParseForStatement() 1649 } else if (Tok.is(tok::r_paren)) { in ParseForStatement() 1670 SkipUntil(tok::r_paren, StopAtSemi | StopBeforeMatch); in ParseForStatement() 1678 if (Tok.isNot(tok::r_paren)) { // for (...;...;) in ParseForStatement()
|
D | ParseDeclCXX.cpp | 720 if (Tok.is(tok::r_paren)) { in ParseStaticAssertDeclaration() 787 "decltype", tok::r_paren)) { in ParseDecltypeSpecifier() 816 if (SkipUntil(tok::r_paren, StopAtSemi | StopBeforeMatch)) { in ParseDecltypeSpecifier() 894 "__underlying_type", tok::r_paren)) { in ParseUnderlyingTypeSpecifier() 900 SkipUntil(tok::r_paren, StopAtSemi); in ParseUnderlyingTypeSpecifier() 1091 case tok::r_paren: //(struct foo {...} ) {4} in isValidAfterTypeSpecifier() 1509 if (!SkipUntil(tok::r_paren, StopAtSemi)) in ParseClassSpecifier() 3293 if (Tok.isNot(tok::r_paren) && ParseExpressionList(ArgExprs, CommaLocs)) { in ParseMemInitializer() 3294 SkipUntil(tok::r_paren, StopAtSemi); in ParseMemInitializer() 3363 ConsumeAndStoreUntil(tok::r_paren, *ExceptionSpecTokens, in tryParseExceptionSpecification() [all …]
|
D | Parser.cpp | 186 if ((Tok.is(tok::r_paren) || Tok.is(tok::r_square)) && in ExpectAndConsumeSemi() 305 SkipUntil(tok::r_paren, StopAtCodeCompletion); in SkipUntil() 307 SkipUntil(tok::r_paren); in SkipUntil() 331 case tok::r_paren: in SkipUntil() 1344 } else if (SkipUntil(tok::r_paren, StopAtSemi | StopBeforeMatch)) { in ParseSimpleAsm() 2090 if (P.Tok.isNot(tok::r_paren) && P.Tok.isNot(tok::r_brace) && in diagnoseMissingClose()
|
D | RAIIObjectsForParser.h | 398 Close = tok::r_paren;
|
/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/Format/ |
D | TokenAnnotator.cpp | 78 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace) || in parseAngle() 188 if (CurrentToken->is(tok::r_paren)) { in parseParens() 326 if (CurrentToken->isOneOf(tok::r_paren, tok::r_brace)) in parseSquare() 333 if (Parent && Parent->is(tok::r_paren)) in parseSquare() 370 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace() 474 if (Tok->Previous->is(tok::r_paren)) in consumeToken() 479 Tok->Next->isOneOf(tok::r_paren, tok::comma)) { in consumeToken() 507 Tok->Previous->is(tok::r_paren) && in consumeToken() 536 !(Tok->Previous->is(tok::r_paren) && Contexts.size() > 1))) && in consumeToken() 546 case tok::r_paren: in consumeToken() [all …]
|
D | ContinuationIndenter.cpp | 153 !Current.isOneOf(tok::r_paren, tok::r_brace)) in mustBreak() 352 if (Current.isMemberAccess() && Previous.is(tok::r_paren) && in addTokenOnCurrentLine() 655 if (Previous.is(tok::r_paren) && !Current.isBinaryOperator() && in getNewLineColumn() 970 (Current.isOneOf(tok::r_paren, tok::r_square) || in moveStatePastScopeCloser()
|
/external/clang/unittests/Lex/ |
D | LexerTest.cpp | 119 ExpectedTokens.push_back(tok::r_paren); in TEST_F() 185 ExpectedTokens.push_back(tok::r_paren); in TEST_F() 200 ExpectedTokens.push_back(tok::r_paren); in TEST_F() 213 ExpectedTokens.push_back(tok::r_paren); in TEST_F() 226 ExpectedTokens.push_back(tok::r_paren); in TEST_F() 241 ExpectedTokens.push_back(tok::r_paren); in TEST_F() 256 ExpectedTokens.push_back(tok::r_paren); in TEST_F()
|
/external/clang/lib/Lex/ |
D | PPMacroExpansion.cpp | 588 } else if (I->is(tok::r_paren)) { in CheckMatchedBrackets() 683 TempToken.setKind(tok::r_paren); in GenerateNewArgTokens() 732 while (Tok.isNot(tok::r_paren)) { in ReadFunctionLikeMacroArgs() 766 } else if (Tok.is(tok::r_paren)) { in ReadFunctionLikeMacroArgs() 815 if (ArgTokens.empty() && Tok.getKind() == tok::r_paren) in ReadFunctionLikeMacroArgs() 1353 if (Tok.isNot(tok::r_paren)) { in EvaluateHasIncludeCommon() 1355 << II << tok::r_paren; in EvaluateHasIncludeCommon() 1446 if (Tok.isNot(tok::r_paren)) { in EvaluateBuildingModule() 1448 << tok::r_paren; in EvaluateBuildingModule() 1623 if (IsScopeValid && Tok.is(tok::r_paren)) in ExpandBuiltinMacro() [all …]
|
D | Pragma.cpp | 195 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::eof)) in Handle_Pragma() 197 while (Tok.isNot(tok::r_paren) && in Handle_Pragma() 201 if (Tok.is(tok::r_paren)) in Handle_Pragma() 210 if (Tok.is(tok::r_paren)) in Handle_Pragma() 220 if (Tok.isNot(tok::r_paren)) { in Handle_Pragma() 326 else if (Tok.is(tok::r_paren) && NumParens-- == 0) in HandleMicrosoft__pragma() 538 if (Tok.isNot(tok::r_paren)) { in ParsePragmaPushOrPopMacro() 692 if (Tok.isNot(tok::r_paren)) { in HandlePragmaIncludeAlias() 1133 if (Tok.isNot(tok::r_paren)) { in HandlePragma() 1215 if (Tok.isNot(tok::r_paren)) { in HandlePragma()
|
D | PPExpressions.cpp | 128 if (PeekTok.isNot(tok::r_paren)) { in EvaluateDefined() 130 << "'defined'" << tok::r_paren; in EvaluateDefined() 202 case tok::r_paren: in EvaluateValue() 334 if (PeekTok.is(tok::r_paren)) { in EvaluateValue() 341 if (PeekTok.isNot(tok::r_paren)) { in EvaluateValue() 444 case tok::r_paren: return 0;// Lowest priority, end of expr. in getPrecedence()
|
/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() 441 } while (tok.isNot(tok::comma) && tok.isNot(tok::r_paren)); in rewritePropertyAttribute() 442 if (tok.is(tok::r_paren)) in rewritePropertyAttribute() 451 if (BeforeTok.is(tok::l_paren) && AfterTok.is(tok::r_paren)) { in rewritePropertyAttribute() 503 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 | 868 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation() 929 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation() 1016 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation() 1424 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue() 1429 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue()
|