/external/clang/lib/Parse/ |
D | ParseTentative.cpp | 151 if (NextToken().isNot(tok::l_paren)) { in TryConsumeDeclarationSpecifier() 160 if (Tok.isNot(tok::l_paren)) in TryConsumeDeclarationSpecifier() 191 if (Tok.isNot(tok::l_paren)) in TryConsumeDeclarationSpecifier() 239 if (Tok.isNot(tok::l_paren)) { in TryParseSimpleDeclaration() 297 if (Tok.is(tok::l_paren)) { in TryParseInitDeclaratorList() 424 assert(Tok.is(tok::l_paren) && "Expected '('"); in isCXXConditionDeclarationOrInitStatement() 447 if (Tok.is(tok::l_paren)) { in isCXXConditionDeclarationOrInitStatement() 508 assert(Tok.is(tok::l_paren) && "Expected '('"); in isCXXTypeId() 661 if (Tok.is(tok::l_paren)) { in isCXX11AttributeSpecifier() 760 case tok::l_paren: in TryParseOperatorId() [all …]
|
D | ParseExpr.cpp | 714 case tok::l_paren: { in ParseCastExpression() 789 if (Next.is(tok::l_paren) && in ParseCastExpression() 867 Next.isOneOf(tok::coloncolon, tok::less, tok::l_paren, in ParseCastExpression() 974 getCurScope(), ScopeSpec, TemplateKWLoc, Name, Tok.is(tok::l_paren), in ParseCastExpression() 1205 if (Tok.isNot(tok::l_paren) && in ParseCastExpression() 1295 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseCastExpression() 1503 case tok::l_paren: // p-e: p-e '(' argument-expression-list[opt] ')' in ParsePostfixExpressionSuffix() 1511 BalancedDelimiterTracker PT(*this, tok::l_paren); in ParsePostfixExpressionSuffix() 1536 if (ExpectAndConsume(tok::l_paren)) in ParsePostfixExpressionSuffix() 1566 if (OpKind == tok::l_paren || !LHS.isInvalid()) { in ParsePostfixExpressionSuffix() [all …]
|
D | ParseExprCXX.cpp | 108 if (!Tok.is(tok::l_paren)) in CheckForLParenAfterColonColon() 609 Tok.is(tok::l_paren), isAddressOfOperand, in tryParseCXXIdExpression() 889 if (Tok.is(tok::l_paren)) { in ParseLambdaIntroducer() 890 BalancedDelimiterTracker Parens(*this, tok::l_paren); in ParseLambdaIntroducer() 1130 if (Tok.is(tok::l_paren)) { in ParseLambdaExpressionAfterIntroducer() 1137 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseLambdaExpressionAfterIntroducer() 1375 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseCXXCasts() 1406 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseCXXTypeid() 1471 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseCXXUuidof() 1674 assert((Tok.is(tok::l_paren) || in ParseCXXTypeConstructExpression() [all …]
|
D | ParseObjc.cpp | 253 if (Tok.is(tok::l_paren) && in ParseObjCAtInterfaceDeclaration() 256 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseObjCAtInterfaceDeclaration() 556 tok::minus, tok::plus, tok::colon, tok::l_paren, tok::l_brace, in parseObjCTypeParamListOrProtocolRefs() 568 if (Tok.isNot(tok::colon) && Tok.isNot(tok::l_paren)) { in parseObjCTypeParamListOrProtocolRefs() 643 if (Tok.is(tok::l_paren)) { in ParseObjCInterfaceDeclList() 739 if (Tok.is(tok::l_paren)) { in ParseObjCInterfaceDeclList() 858 assert(Tok.getKind() == tok::l_paren); in ParseObjCPropertyAttribute() 859 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseObjCPropertyAttribute() 1260 assert(Tok.is(tok::l_paren) && "expected ("); in ParseObjCTypeName() 1262 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseObjCTypeName() [all …]
|
D | ParseCXXInlineMethods.cpp | 693 case tok::l_paren: in ConsumeAndStoreUntil() 812 if (Tok.isNot(tok::l_paren)) in ConsumeAndStoreFunctionPrologue() 819 Diag(OpenLoc, diag::note_matching) << tok::l_paren; in ConsumeAndStoreFunctionPrologue() 861 if (!ConsumeAndStoreUntil(tok::l_paren, tok::l_brace, Toks, in ConsumeAndStoreFunctionPrologue() 868 } else if (Tok.isNot(tok::l_paren) && Tok.isNot(tok::l_brace)) { in ConsumeAndStoreFunctionPrologue() 872 << tok::l_paren << tok::l_brace; in ConsumeAndStoreFunctionPrologue() 874 return Diag(Tok.getLocation(), diag::err_expected) << tok::l_paren; in ConsumeAndStoreFunctionPrologue() 879 bool IsLParen = (kind == tok::l_paren); in ConsumeAndStoreFunctionPrologue() 1153 case tok::l_paren: in ConsumeAndStoreInitializer()
|
D | ParseStmt.cpp | 129 WantTypeSpecifiers = nextTok.isOneOf(tok::l_paren, tok::less, tok::l_square, in StatementFilterCCC() 132 nextTok.isOneOf(tok::l_paren, tok::identifier, tok::arrow, tok::period); in StatementFilterCCC() 134 nextTok.isOneOf(tok::l_paren, tok::semi, tok::identifier, tok::l_brace); in StatementFilterCCC() 481 if (ExpectAndConsume(tok::l_paren)) in ParseSEHExceptBlock() 1060 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseParenExprOrCondition() 1121 if (Tok.isNot(tok::l_paren)) { in ParseIfStatement() 1259 if (Tok.isNot(tok::l_paren)) { in ParseSwitchStatement() 1345 if (Tok.isNot(tok::l_paren)) { in ParseWhileStatement() 1450 if (Tok.isNot(tok::l_paren)) { in ParseDoStatement() 1457 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseDoStatement() [all …]
|
D | ParseOpenMP.cpp | 207 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPDeclareReductionDirective() 319 BalancedDelimiterTracker T(*this, tok::l_paren, in ParseOpenMPDeclareReductionDirective() 838 if (PP.LookAhead(0).is(tok::l_paren)) { in ParseOpenMPDeclarativeOrExecutableDirective() 889 BalancedDelimiterTracker T(*this, tok::l_paren, in ParseOpenMPDeclarativeOrExecutableDirective() 997 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSimpleVarList() 1117 if (CKind == OMPC_ordered && PP.LookAhead(/*N=*/0).isNot(tok::l_paren)) in ParseOpenMPClause() 1214 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPParensExpr() 1287 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSimpleClause() 1357 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSingleExprWithArgClause() 1532 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPVarList() [all …]
|
D | ParseDecl.cpp | 132 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, in ParseGNUAttributes() 137 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, "(")) { in ParseGNUAttributes() 156 if (Tok.isNot(tok::l_paren)) { in ParseGNUAttributes() 249 BalancedDelimiterTracker Parens(*this, tok::l_paren); in ParseAttributeWithTypeArg() 344 assert(Tok.is(tok::l_paren) && "Attribute arg list not starting with '('"); in ParseGNUAttributeArgs() 406 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseMicrosoftDeclSpecArgs() 542 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseMicrosoftDeclSpecs() 584 if (Tok.is(tok::l_paren)) in ParseMicrosoftDeclSpecs() 870 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseAvailabilityAttribute() 872 Diag(Tok, diag::err_expected) << tok::l_paren; in ParseAvailabilityAttribute() [all …]
|
D | ParsePragma.cpp | 548 if (Tok.isNot(tok::l_paren)) { in HandlePragmaMSSection() 629 if (Tok.isNot(tok::l_paren)) { in HandlePragmaMSSegment() 718 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSInitSeg() 922 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 974 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 1209 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 1518 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 1616 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 1742 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 1743 PP.Diag(DetectMismatchLoc, diag::err_expected) << tok::l_paren; in HandlePragma() [all …]
|
D | ParseStmtAsm.cpp | 361 return TokAfterAsm.is(tok::l_paren) || TokAfterAsm.is(tok::kw_goto) || in isGCCAsmStatement() 701 if (Tok.isNot(tok::l_paren)) { in ParseAsmStatement() 706 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseAsmStatement() 845 if (Tok.isNot(tok::l_paren)) { in ParseAsmOperandsOpt() 852 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseAsmOperandsOpt()
|
D | ParseDeclCXX.cpp | 706 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseStaticAssertDeclaration() 708 Diag(Tok, diag::err_expected) << tok::l_paren; in ParseStaticAssertDeclaration() 785 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseDecltypeSpecifier() 892 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseUnderlyingTypeSpecifier() 1094 case tok::l_paren: // struct foo {...} ( x); in isValidAfterTypeSpecifier() 1521 } else if (Tok.is(tok::kw_alignas) && NextToken().is(tok::l_paren)) { in ParseClassSpecifier() 3309 } else if(Tok.is(tok::l_paren)) { in ParseMemInitializer() 3310 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseMemInitializer() 3333 return Diag(Tok, diag::err_expected_either) << tok::l_paren << tok::l_brace; in ParseMemInitializer() 3335 return Diag(Tok, diag::err_expected) << tok::l_paren; in ParseMemInitializer() [all …]
|
D | RAIIObjectsForParser.h | 375 case tok::l_paren: return P.ParenCount; in getDepth() 397 case tok::l_paren:
|
/external/clang/lib/Format/ |
D | TokenAnnotator.cpp | 117 ScopedContextCreator ContextCreator(*this, tok::l_paren, 1); in parseParens() 143 tok::kw_if, tok::kw_while, tok::l_paren, in parseParens() 215 CurrentToken->Previous->Previous->isOneOf(tok::l_paren, in parseParens() 224 (CurrentToken->Next->is(tok::l_paren) || in parseParens() 231 Left->Previous && Left->Previous->is(tok::l_paren)) { in parseParens() 313 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare() 331 tok::comma, tok::l_paren, tok::l_square, in parseSquare() 348 if (CurrentToken->Next && CurrentToken->Next->is(tok::l_paren) && in parseSquare() 497 Contexts.back().ContextKind == tok::l_paren || // function params in consumeToken() 532 } else if (Contexts.back().ContextKind == tok::l_paren) { in consumeToken() [all …]
|
D | UnwrappedLineParser.cpp | 370 tok::l_square, tok::l_paren, tok::ellipsis) || in calculateBraceTypes() 422 if (MacroBlock && FormatTok->is(tok::l_paren)) in parseBlock() 445 if (MacroBlock && FormatTok->is(tok::l_paren)) in parseBlock() 468 return I->Tok->is(tok::l_paren); in isGoogScope() 614 if (FormatTok->Tok.getKind() == tok::l_paren && in parsePPDefine() 982 case tok::l_paren: in parseStructuralElement() 995 if (FormatTok->is(tok::l_paren)) in parseStructuralElement() 1071 bool FunctionLike = FormatTok->is(tok::l_paren); in parseStructuralElement() 1143 case tok::l_paren: in tryToParseLambda() 1233 if (FormatTok->isNot(tok::l_paren)) in tryToParseJSFunction() [all …]
|
D | ContinuationIndenter.cpp | 111 Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma)) in canBreak() 245 if (Previous.is(TT_LeadingJavaAnnotation) && Current.isNot(tok::l_paren) && in mustBreak() 356 Previous.isOneOf(tok::l_paren, TT_TemplateOpener, tok::l_square) && in addTokenOnCurrentLine() 397 if (Current.isNot(tok::comment) && Previous.is(tok::l_paren) && in addTokenOnCurrentLine() 586 if (!Previous.isOneOf(tok::l_paren, tok::l_brace, TT_BinaryOperator) || in addTokenOnNewLine() 783 if (Previous && (Previous->isOneOf(tok::l_paren, tok::comma, tok::colon) || in moveStateToNextToken() 788 (Previous->isNot(tok::l_paren) || Previous->ParameterCount > 1); in moveStateToNextToken() 964 Current.ParentBracket == tok::l_paren) { in moveStatePastScopeOpener()
|
D | FormatTokenLexer.cpp | 144 return Tok->isOneOf(tok::period, tok::l_paren, tok::comma, tok::l_brace, in precedesOperand() 279 if (!Tokens[Tokens.size() - 3]->is(tok::l_paren)) in tryMerge_TMacro()
|
/external/clang/unittests/Lex/ |
D | LexerTest.cpp | 122 ExpectedTokens.push_back(tok::l_paren); in TEST_F() 188 ExpectedTokens.push_back(tok::l_paren); in TEST_F() 203 ExpectedTokens.push_back(tok::l_paren); in TEST_F() 216 ExpectedTokens.push_back(tok::l_paren); in TEST_F() 229 ExpectedTokens.push_back(tok::l_paren); in TEST_F() 243 ExpectedTokens.push_back(tok::l_paren); in TEST_F() 259 ExpectedTokens.push_back(tok::l_paren); in TEST_F()
|
/external/clang/lib/Lex/ |
D | PPMacroExpansion.cpp | 586 if (I->is(tok::l_paren)) { in CheckMatchedBrackets() 668 TempToken.setKind(tok::l_paren); in GenerateNewArgTokens() 719 assert(Tok.is(tok::l_paren) && "Error computing l-paren-ness?"); in ReadFunctionLikeMacroArgs() 735 assert(Tok.isOneOf(tok::l_paren, tok::comma) && in ReadFunctionLikeMacroArgs() 774 } else if (Tok.is(tok::l_paren)) { in ReadFunctionLikeMacroArgs() 1298 if (Tok.isNot(tok::l_paren)) { in EvaluateHasIncludeCommon() 1301 PP.Diag(LParenLoc, diag::err_pp_expected_after) << II << tok::l_paren; in EvaluateHasIncludeCommon() 1365 PP.Diag(LParenLoc, diag::note_matching) << tok::l_paren; in EvaluateHasIncludeCommon() 1432 if (Tok.isNot(tok::l_paren)) { in EvaluateFeatureLikeBuiltinMacro() 1434 << tok::l_paren; in EvaluateFeatureLikeBuiltinMacro() [all …]
|
D | Pragma.cpp | 185 if (Tok.isNot(tok::l_paren)) { in Handle_Pragma() 313 if (Tok.isNot(tok::l_paren)) { in HandleMicrosoft__pragma() 324 if (Tok.is(tok::l_paren)) in HandleMicrosoft__pragma() 514 if (Tok.isNot(tok::l_paren)) { in ParsePragmaPushOrPopMacro() 629 if (Tok.isNot(tok::l_paren)) { in HandlePragmaIncludeAlias() 1063 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 1221 case tok::l_paren: in HandlePragma()
|
D | PPExpressions.cpp | 98 if (PeekTok.is(tok::l_paren)) { in EvaluateDefined() 137 PP.Diag(LParenLoc, diag::note_matching) << tok::l_paren; in EvaluateDefined() 379 case tok::l_paren: { in EvaluateValue() 398 PP.Diag(Start, diag::note_matching) << tok::l_paren; in EvaluateValue() 510 if (Tok.is(tok::l_paren) && LHS.getIdentifier()) in diagnoseUnexpectedOperator()
|
/external/clang/lib/ARCMigrate/ |
D | Transforms.cpp | 415 if (tok.isNot(tok::l_paren)) return false; in rewritePropertyAttribute() 451 if (BeforeTok.is(tok::l_paren) && AfterTok.is(tok::r_paren)) { in rewritePropertyAttribute() 454 } else if (BeforeTok.is(tok::l_paren) && AfterTok.is(tok::comma)) { in rewritePropertyAttribute() 497 if (tok.isNot(tok::l_paren)) { in addPropertyAttribute()
|
/external/clang/include/clang/Lex/ |
D | PTHLexer.h | 87 return x == tok::eof ? 2 : x == tok::l_paren; in isNextPPTokenLParen()
|
/external/swiftshader/third_party/LLVM/lib/TableGen/ |
D | TGLexer.h | 37 l_paren, r_paren, // ( ) enumerator
|
D | TGLexer.cpp | 106 case '(': return tgtok::l_paren; in LexToken()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.h | 38 l_paren, r_paren, // ( ) enumerator
|