/external/clang/lib/Parse/ |
D | ParseTentative.cpp | 163 if (!SkipUntil(tok::r_paren)) in TryConsumeDeclarationSpecifier() 194 if (!SkipUntil(tok::r_paren)) in TryConsumeDeclarationSpecifier() 300 if (!SkipUntil(tok::r_paren, StopAtSemi)) in TryParseInitDeclaratorList() 351 P.SkipUntil(tok::r_paren, tok::semi, StopBeforeMatch); in markNotExpression() 352 if (P.Tok.isNot(tok::r_paren)) in markNotExpression() 449 SkipUntil(tok::r_paren, StopAtSemi); in isCXXConditionDeclarationOrInitStatement() 457 if (State.CanBeCondition && Tok.is(tok::r_paren)) in isCXXConditionDeclarationOrInitStatement() 520 if (Context == TypeIdInParens && Tok.is(tok::r_paren)) { in isCXXTypeId() 663 if (!SkipUntil(tok::r_paren)) { in isCXX11AttributeSpecifier() 761 if (NextToken().is(tok::r_paren)) { in TryParseOperatorId() [all …]
|
D | ParseExpr.cpp | 970 Validator->WantRemainingKeywords = Tok.isNot(tok::r_paren); in ParseCastExpression() 977 Tok.is(tok::r_paren) ? nullptr : &Replacement); in ParseCastExpression() 1567 if (Tok.isNot(tok::r_paren)) { in ParsePostfixExpressionSuffix() 1582 SkipUntil(tok::r_paren, StopAtSemi); in ParsePostfixExpressionSuffix() 1583 } else if (Tok.isNot(tok::r_paren)) { in ParsePostfixExpressionSuffix() 1594 SkipUntil(tok::r_paren, StopAtSemi); in ParsePostfixExpressionSuffix() 1851 SkipUntil(tok::r_paren, StopAtSemi); in ParseUnaryExprOrTypeTraitExpression() 1959 SkipUntil(tok::r_paren, StopAtSemi); in ParseBuiltinPrimaryExpression() 1965 if (Tok.isNot(tok::r_paren)) { in ParseBuiltinPrimaryExpression() 1966 Diag(Tok, diag::err_expected) << tok::r_paren; in ParseBuiltinPrimaryExpression() [all …]
|
D | ParseOpenMP.cpp | 184 P.SkipUntil(tok::colon, tok::r_paren, tok::annot_pragma_openmp_end, in parseOpenMPReductionId() 299 if (CombinerResult.isInvalid() && Tok.isNot(tok::r_paren) && in ParseOpenMPDeclareReductionDirective() 334 if (InitializerResult.isInvalid() && Tok.isNot(tok::r_paren) && in ParseOpenMPDeclareReductionDirective() 1005 while (Tok.isNot(tok::r_paren) && Tok.isNot(tok::annot_pragma_openmp_end)) { in ParseOpenMPSimpleVarList() 1016 SkipUntil(tok::comma, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPSimpleVarList() 1021 SkipUntil(tok::comma, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPSimpleVarList() 1023 } else if (Tok.isNot(tok::comma) && Tok.isNot(tok::r_paren) && in ParseOpenMPSimpleVarList() 1026 SkipUntil(tok::comma, tok::r_paren, tok::annot_pragma_openmp_end, in ParseOpenMPSimpleVarList() 1295 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSimpleClause() 1378 if (Tok.isNot(tok::r_paren) && Tok.isNot(tok::comma) && in ParseOpenMPSingleExprWithArgClause() [all …]
|
D | ParseDecl.cpp | 134 SkipUntil(tok::r_paren, StopAtSemi); // skip until ) or ; in ParseGNUAttributes() 138 SkipUntil(tok::r_paren, StopAtSemi); // skip until ) or ; in ParseGNUAttributes() 180 ConsumeAndStoreUntil(tok::r_paren, LA->Toks, true, false); in ParseGNUAttributes() 188 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes() 189 SkipUntil(tok::r_paren, StopAtSemi); in ParseGNUAttributes() 191 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes() 192 SkipUntil(tok::r_paren, StopAtSemi); in ParseGNUAttributes() 253 if (Tok.isNot(tok::r_paren)) in ParseAttributeWithTypeArg() 290 IsIdentifierArg = Next.isOneOf(tok::r_paren, tok::comma); in ParseAttributeArgsCommon() 297 if (!ArgExprs.empty() ? Tok.is(tok::comma) : Tok.isNot(tok::r_paren)) { in ParseAttributeArgsCommon() [all …]
|
D | ParseStmtAsm.cpp | 697 SkipUntil(tok::r_paren, StopAtSemi); in ParseAsmStatement() 703 SkipUntil(tok::r_paren, StopAtSemi); in ParseAsmStatement() 730 if (Tok.is(tok::r_paren)) { in ParseAsmStatement() 777 if (Tok.isNot(tok::r_paren)) { in ParseAsmStatement() 826 SkipUntil(tok::r_paren, StopAtSemi); in ParseAsmOperandsOpt() 840 SkipUntil(tok::r_paren, StopAtSemi); in ParseAsmOperandsOpt() 847 SkipUntil(tok::r_paren, StopAtSemi); in ParseAsmOperandsOpt() 857 SkipUntil(tok::r_paren, StopAtSemi); in ParseAsmOperandsOpt()
|
D | ParsePragma.cpp | 612 if (Tok.isNot(tok::r_paren)) { in HandlePragmaMSSection() 658 else if (Tok.isNot(tok::r_paren)) { in HandlePragmaMSSegment() 664 } else if (Tok.isNot(tok::r_paren)) { in HandlePragmaMSSegment() 672 if (Tok.isNot(tok::r_paren)) { in HandlePragmaMSSegment() 694 if (Tok.isNot(tok::r_paren)) { in HandlePragmaMSSegment() 762 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSInitSeg() 935 if (Tok.isNot(tok::r_paren)) { in HandlePragma() 1048 if (Tok.isNot(tok::r_paren)) { in HandlePragma() 1240 if (Tok.is(tok::r_paren)) { in HandlePragma() 1548 } else if (Tok.is(tok::r_paren)) { in HandlePragma() [all …]
|
D | ParseObjc.cpp | 905 SkipUntil(tok::r_paren, StopAtSemi); in ParseObjCPropertyAttribute() 923 SkipUntil(tok::r_paren, StopAtSemi); in ParseObjCPropertyAttribute() 933 SkipUntil(tok::r_paren, StopAtSemi); in ParseObjCPropertyAttribute() 975 SkipUntil(tok::r_paren, StopAtSemi); in ParseObjCPropertyAttribute() 1304 if (Tok.is(tok::r_paren)) in ParseObjCTypeName() 1309 SkipUntil(tok::r_paren, StopAtSemi); in ParseObjCTypeName() 2178 if (Tok.isNot(tok::r_paren)) { in ParseObjCAtImplementationDeclaration() 2179 Diag(Tok, diag::err_expected) << tok::r_paren; in ParseObjCAtImplementationDeclaration() 2180 SkipUntil(tok::r_paren); // don't stop at ';' in ParseObjCAtImplementationDeclaration() 2406 SkipUntil(tok::r_paren, StopAtSemi); in ParseObjCPropertyDynamic() [all …]
|
D | ParseCXXInlineMethods.cpp | 697 ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil() 717 case tok::r_paren: in ConsumeAndStoreUntil() 817 if (!ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/true)) { in ConsumeAndStoreFunctionPrologue() 818 Diag(Tok.getLocation(), diag::err_expected) << tok::r_paren; in ConsumeAndStoreFunctionPrologue() 896 tok::TokenKind CloseKind = IsLParen ? tok::r_paren : tok::r_brace; in ConsumeAndStoreFunctionPrologue() 1037 ? tok::semi : tok::r_paren); in ConsumeAndStoreInitializer() 1157 ConsumeAndStoreUntil(tok::r_paren, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreInitializer() 1178 case tok::r_paren: in ConsumeAndStoreInitializer()
|
D | ParseExprCXX.cpp | 124 if (NextTok.is(tok::r_paren)) { in CheckForLParenAfterColonColon() 1146 if (Tok.isNot(tok::r_paren)) { in ParseLambdaExpressionAfterIntroducer() 1447 SkipUntil(tok::r_paren, StopAtSemi); in ParseCXXTypeid() 1497 SkipUntil(tok::r_paren, StopAtSemi); in ParseCXXUuidof() 1617 case tok::r_paren: in ParseThrowExpression() 1693 if (Tok.isNot(tok::r_paren)) { in ParseCXXTypeConstructExpression() 1699 SkipUntil(tok::r_paren, StopAtSemi); in ParseCXXTypeConstructExpression() 1830 if (SkipUntil(tok::r_paren, StopAtSemi | StopBeforeMatch)) in ParseCXXCondition() 2776 if (Tok.isNot(tok::r_paren)) { in ParseCXXNewExpression() 3046 SkipUntil(tok::r_paren, StopAtSemi); in ParseArrayTypeTrait() [all …]
|
D | ParseStmt.cpp | 509 if (ExpectAndConsume(tok::r_paren)) in ParseSEHExceptBlock() 1078 if (Cond.isInvalid() && Tok.isNot(tok::r_paren)) { in ParseParenExprOrCondition() 1082 if (Tok.isNot(tok::r_paren)) in ParseParenExprOrCondition() 1092 while (Tok.is(tok::r_paren)) { in ParseParenExprOrCondition() 1667 SkipUntil(tok::r_paren, StopBeforeMatch); in ParseForStatement() 1674 SkipUntil(tok::r_paren, StopAtSemi | StopBeforeMatch); in ParseForStatement() 1687 } else if (Tok.is(tok::r_paren)) { in ParseForStatement() 1709 SkipUntil(tok::r_paren, StopAtSemi | StopBeforeMatch); in ParseForStatement() 1717 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() 1090 case tok::r_paren: //(struct foo {...} ) {4} in isValidAfterTypeSpecifier() 1524 if (!SkipUntil(tok::r_paren, StopAtSemi)) in ParseClassSpecifier() 3316 if (Tok.isNot(tok::r_paren) && ParseExpressionList(ArgExprs, CommaLocs)) { in ParseMemInitializer() 3317 SkipUntil(tok::r_paren, StopAtSemi); in ParseMemInitializer() 3386 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() 1370 } else if (SkipUntil(tok::r_paren, StopAtSemi | StopBeforeMatch)) { in ParseSimpleAsm() 2112 if (P.Tok.isNot(tok::r_paren) && P.Tok.isNot(tok::r_brace) && in diagnoseMissingClose()
|
/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/unittests/Lex/ |
D | LexerTest.cpp | 124 ExpectedTokens.push_back(tok::r_paren); in TEST_F() 190 ExpectedTokens.push_back(tok::r_paren); in TEST_F() 205 ExpectedTokens.push_back(tok::r_paren); in TEST_F() 218 ExpectedTokens.push_back(tok::r_paren); in TEST_F() 231 ExpectedTokens.push_back(tok::r_paren); in TEST_F() 246 ExpectedTokens.push_back(tok::r_paren); in TEST_F() 261 ExpectedTokens.push_back(tok::r_paren); in TEST_F()
|
/external/clang/lib/Format/ |
D | TokenAnnotator.cpp | 54 if (Previous.Previous->is(tok::r_paren) && Contexts.size() > 1 && in parseAngle() 91 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace) || in parseAngle() 222 if (CurrentToken->is(tok::r_paren)) { in parseParens() 374 if (CurrentToken->isOneOf(tok::r_paren, tok::r_brace)) in parseSquare() 381 if (Parent && Parent->is(tok::r_paren)) in parseSquare() 418 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace() 523 if (Tok->Previous->isOneOf(tok::r_paren, tok::kw_noexcept)) in consumeToken() 528 Tok->Next->isOneOf(tok::r_paren, tok::comma)) { in consumeToken() 567 Tok->Previous->is(tok::r_paren) && in consumeToken() 602 case tok::r_paren: in consumeToken() [all …]
|
D | ContinuationIndenter.cpp | 165 !Current.isOneOf(tok::r_paren, tok::r_brace)) in mustBreak() 384 if (Current.isMemberAccess() && Previous.is(tok::r_paren) && in addTokenOnCurrentLine() 697 if (Previous.is(tok::r_paren) && !Current.isBinaryOperator() && in getNewLineColumn() 1021 (Current.isOneOf(tok::r_paren, tok::r_square) || in moveStatePastScopeCloser()
|
/external/clang/lib/Lex/ |
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() 1159 if (Tok.isNot(tok::r_paren)) { in HandlePragma() 1241 if (Tok.isNot(tok::r_paren)) { in HandlePragma()
|
D | PPMacroExpansion.cpp | 588 } else if (I->is(tok::r_paren)) { in CheckMatchedBrackets() 681 TempToken.setKind(tok::r_paren); in GenerateNewArgTokens() 731 while (Tok.isNot(tok::r_paren)) { in ReadFunctionLikeMacroArgs() 764 } else if (Tok.is(tok::r_paren)) { in ReadFunctionLikeMacroArgs() 817 if (ArgTokens.empty() && Tok.getKind() == tok::r_paren) in ReadFunctionLikeMacroArgs() 1362 if (Tok.isNot(tok::r_paren)) { in EvaluateHasIncludeCommon() 1364 << II << tok::r_paren; in EvaluateHasIncludeCommon() 1480 case tok::r_paren: in EvaluateFeatureLikeBuiltinMacro() 1517 Diag << tok::r_paren << ResultTok.getLocation(); in EvaluateFeatureLikeBuiltinMacro() 1758 if (Tok.isNot(tok::r_paren)) in ExpandBuiltinMacro() [all …]
|
D | PPExpressions.cpp | 134 if (PeekTok.isNot(tok::r_paren)) { in EvaluateDefined() 136 << "'defined'" << tok::r_paren; in EvaluateDefined() 256 case tok::r_paren: in EvaluateValue() 388 if (PeekTok.is(tok::r_paren)) { in EvaluateValue() 395 if (PeekTok.isNot(tok::r_paren)) { in EvaluateValue() 503 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/swiftshader/third_party/LLVM/lib/TableGen/ |
D | TGLexer.h | 37 l_paren, r_paren, // ( ) enumerator
|
D | TGParser.cpp | 791 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation() 843 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation() 915 if (Lex.getCode() != tgtok::r_paren) { in ParseOperation() 1267 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue() 1272 if (Lex.getCode() != tgtok::r_paren) { in ParseSimpleValue()
|
D | TGLexer.cpp | 107 case ')': return tgtok::r_paren; in LexToken()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.h | 38 l_paren, r_paren, // ( ) enumerator
|