/external/clang/lib/Parse/ |
D | ParseTentative.cpp | 150 if (NextToken().isNot(tok::l_paren)) { in TryConsumeDeclarationSpecifier() 159 if (Tok.isNot(tok::l_paren)) in TryConsumeDeclarationSpecifier() 190 if (Tok.isNot(tok::l_paren)) in TryConsumeDeclarationSpecifier() 238 if (Tok.isNot(tok::l_paren)) { in TryParseSimpleDeclaration() 296 if (Tok.is(tok::l_paren)) { in TryParseInitDeclaratorList() 361 assert(Tok.is(tok::l_paren) && "Expected '('"); in isCXXConditionDeclaration() 430 assert(Tok.is(tok::l_paren) && "Expected '('"); in isCXXTypeId() 590 if (Tok.is(tok::l_paren)) { in isCXX11AttributeSpecifier() 691 case tok::l_paren: in TryParseOperatorId() 818 } else if (Tok.is(tok::l_paren)) { in TryParseDeclarator() [all …]
|
D | ParseOpenMP.cpp | 205 if (PP.LookAhead(0).is(tok::l_paren)) { in ParseOpenMPDeclarativeOrExecutableDirective() 247 BalancedDelimiterTracker T(*this, tok::l_paren, in ParseOpenMPDeclarativeOrExecutableDirective() 349 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSimpleVarList() 472 if (CKind == OMPC_ordered && PP.LookAhead(/*N=*/0).isNot(tok::l_paren)) in ParseOpenMPClause() 589 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSingleExprClause() 621 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSimpleClause() 687 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSingleExprWithArgClause() 837 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPVarListClause() 843 BalancedDelimiterTracker LinearT(*this, tok::l_paren, in ParseOpenMPVarListClause() 894 if (Tok.is(tok::identifier) && PP.LookAhead(0).is(tok::l_paren)) { in ParseOpenMPVarListClause()
|
D | ParseExprCXX.cpp | 108 if (!Tok.is(tok::l_paren)) in CheckForLParenAfterColonColon() 609 Tok.is(tok::l_paren), isAddressOfOperand, in tryParseCXXIdExpression() 878 if (Tok.is(tok::l_paren)) { in ParseLambdaIntroducer() 879 BalancedDelimiterTracker Parens(*this, tok::l_paren); in ParseLambdaIntroducer() 1067 if (Tok.is(tok::l_paren)) { in ParseLambdaExpressionAfterIntroducer() 1074 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseLambdaExpressionAfterIntroducer() 1307 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseCXXCasts() 1338 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseCXXTypeid() 1403 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseCXXUuidof() 1606 assert((Tok.is(tok::l_paren) || in ParseCXXTypeConstructExpression() [all …]
|
D | ParseExpr.cpp | 701 case tok::l_paren: { in ParseCastExpression() 776 if (Next.is(tok::l_paren) && in ParseCastExpression() 853 Next.isOneOf(tok::coloncolon, tok::less, tok::l_paren, in ParseCastExpression() 960 getCurScope(), ScopeSpec, TemplateKWLoc, Name, Tok.is(tok::l_paren), in ParseCastExpression() 1178 if (Tok.isNot(tok::l_paren) && in ParseCastExpression() 1268 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseCastExpression() 1455 case tok::l_paren: // p-e: p-e '(' argument-expression-list[opt] ')' in ParsePostfixExpressionSuffix() 1463 BalancedDelimiterTracker PT(*this, tok::l_paren); in ParsePostfixExpressionSuffix() 1488 if (ExpectAndConsume(tok::l_paren)) in ParsePostfixExpressionSuffix() 1518 if (OpKind == tok::l_paren || !LHS.isInvalid()) { in ParsePostfixExpressionSuffix() [all …]
|
D | ParseObjc.cpp | 248 if (Tok.is(tok::l_paren) && in ParseObjCAtInterfaceDeclaration() 251 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseObjCAtInterfaceDeclaration() 570 tok::minus, tok::plus, tok::colon, tok::l_paren, tok::l_brace, in parseObjCTypeParamListOrProtocolRefs() 582 if (Tok.isNot(tok::colon) && Tok.isNot(tok::l_paren)) { in parseObjCTypeParamListOrProtocolRefs() 657 if (Tok.is(tok::l_paren)) { in ParseObjCInterfaceDeclList() 753 if (Tok.is(tok::l_paren)) { in ParseObjCInterfaceDeclList() 871 assert(Tok.getKind() == tok::l_paren); in ParseObjCPropertyAttribute() 872 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseObjCPropertyAttribute() 1271 assert(Tok.is(tok::l_paren) && "expected ("); in ParseObjCTypeName() 1273 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseObjCTypeName() [all …]
|
D | ParseCXXInlineMethods.cpp | 684 case tok::l_paren: in ConsumeAndStoreUntil() 803 if (Tok.isNot(tok::l_paren)) in ConsumeAndStoreFunctionPrologue() 810 Diag(OpenLoc, diag::note_matching) << tok::l_paren; in ConsumeAndStoreFunctionPrologue() 852 if (!ConsumeAndStoreUntil(tok::l_paren, tok::l_brace, Toks, in ConsumeAndStoreFunctionPrologue() 859 } else if (Tok.isNot(tok::l_paren) && Tok.isNot(tok::l_brace)) { in ConsumeAndStoreFunctionPrologue() 863 << tok::l_paren << tok::l_brace; in ConsumeAndStoreFunctionPrologue() 865 return Diag(Tok.getLocation(), diag::err_expected) << tok::l_paren; in ConsumeAndStoreFunctionPrologue() 870 bool IsLParen = (kind == tok::l_paren); in ConsumeAndStoreFunctionPrologue() 1144 case tok::l_paren: in ConsumeAndStoreInitializer()
|
D | ParseStmt.cpp | 122 WantTypeSpecifiers = nextTok.isOneOf(tok::l_paren, tok::less, tok::l_square, in StatementFilterCCC() 125 nextTok.isOneOf(tok::l_paren, tok::identifier, tok::arrow, tok::period); in StatementFilterCCC() 127 nextTok.isOneOf(tok::l_paren, tok::semi, tok::identifier, tok::l_brace); in StatementFilterCCC() 469 if (ExpectAndConsume(tok::l_paren)) in ParseSEHExceptBlock() 1040 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseParenExprOrCondition() 1093 if (Tok.isNot(tok::l_paren)) { in ParseIfStatement() 1217 if (Tok.isNot(tok::l_paren)) { in ParseSwitchStatement() 1302 if (Tok.isNot(tok::l_paren)) { in ParseWhileStatement() 1409 if (Tok.isNot(tok::l_paren)) { in ParseDoStatement() 1416 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseDoStatement() [all …]
|
D | ParseDecl.cpp | 131 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, in ParseGNUAttributes() 136 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, "(")) { in ParseGNUAttributes() 155 if (Tok.isNot(tok::l_paren)) { in ParseGNUAttributes() 248 BalancedDelimiterTracker Parens(*this, tok::l_paren); in ParseAttributeWithTypeArg() 343 assert(Tok.is(tok::l_paren) && "Attribute arg list not starting with '('"); in ParseGNUAttributeArgs() 405 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseMicrosoftDeclSpecArgs() 541 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseMicrosoftDeclSpecs() 583 if (Tok.is(tok::l_paren)) in ParseMicrosoftDeclSpecs() 864 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseAvailabilityAttribute() 866 Diag(Tok, diag::err_expected) << tok::l_paren; in ParseAvailabilityAttribute() [all …]
|
D | ParsePragma.cpp | 531 if (Tok.isNot(tok::l_paren)) { in HandlePragmaMSSection() 612 if (Tok.isNot(tok::l_paren)) { in HandlePragmaMSSegment() 701 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSInitSeg() 898 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 951 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 1198 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 1520 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 1618 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 1743 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 1744 PP.Diag(CommentLoc, diag::err_expected) << tok::l_paren; in HandlePragma() [all …]
|
D | ParseStmtAsm.cpp | 635 if (getLangOpts().AsmBlocks && Tok.isNot(tok::l_paren) && in ParseAsmStatement() 656 if (Tok.isNot(tok::l_paren)) { in ParseAsmStatement() 661 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseAsmStatement() 800 if (Tok.isNot(tok::l_paren)) { in ParseAsmOperandsOpt() 807 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() 1095 case tok::l_paren: // struct foo {...} ( x); in isValidAfterTypeSpecifier() 1506 } else if (Tok.is(tok::kw_alignas) && NextToken().is(tok::l_paren)) { in ParseClassSpecifier() 3286 } else if(Tok.is(tok::l_paren)) { in ParseMemInitializer() 3287 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseMemInitializer() 3310 return Diag(Tok, diag::err_expected_either) << tok::l_paren << tok::l_brace; in ParseMemInitializer() 3312 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:
|
D | Parser.cpp | 301 case tok::l_paren: in SkipUntil() 825 Tok.is(tok::l_paren)); // int X(0) -> not a function def [C++] in isDeclarationAfterDeclarator() 1331 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseSimpleAsm() 1888 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseMicrosoftIfExistsCondition()
|
/external/clang/lib/Format/ |
D | TokenAnnotator.cpp | 104 ScopedContextCreator ContextCreator(*this, tok::l_paren, 1); in parseParens() 124 tok::kw_if, tok::kw_while, tok::l_paren, in parseParens() 183 CurrentToken->Previous->Previous->isOneOf(tok::l_paren, in parseParens() 190 (CurrentToken->Next->is(tok::l_paren) || in parseParens() 268 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare() 284 Parent->isOneOf(tok::at, tok::equal, tok::comma, tok::l_paren, in parseSquare() 300 if (CurrentToken->Next && CurrentToken->Next->is(tok::l_paren) && in parseSquare() 448 Contexts.back().ContextKind == tok::l_paren || // function params in consumeToken() 483 } else if (Contexts.back().ContextKind == tok::l_paren) { in consumeToken() 489 if (CurrentToken && CurrentToken->is(tok::l_paren)) { in consumeToken() [all …]
|
D | UnwrappedLineParser.cpp | 360 tok::l_paren, tok::ellipsis) || in calculateBraceTypes() 411 if (MacroBlock && FormatTok->is(tok::l_paren)) in parseBlock() 431 if (MacroBlock && FormatTok->is(tok::l_paren)) in parseBlock() 454 return I->Tok->is(tok::l_paren); in isGoogScope() 600 if (FormatTok->Tok.getKind() == tok::l_paren && in parsePPDefine() 858 case tok::l_paren: in parseStructuralElement() 871 if (FormatTok->is(tok::l_paren)) in parseStructuralElement() 929 bool FunctionLike = FormatTok->is(tok::l_paren); in parseStructuralElement() 1003 case tok::l_paren: in tryToParseLambda() 1084 if (FormatTok->isNot(tok::l_paren)) in tryToParseJSFunction() [all …]
|
D | ContinuationIndenter.cpp | 105 Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma)) in canBreak() 226 if (Previous.is(TT_LeadingJavaAnnotation) && Current.isNot(tok::l_paren) && in mustBreak() 335 Previous.is(tok::l_paren) && State.Column > getNewLineColumn(State) && in addTokenOnCurrentLine() 365 if (Current.isNot(tok::comment) && Previous.is(tok::l_paren) && in addTokenOnCurrentLine() 544 if (!Previous.isOneOf(tok::l_paren, tok::l_brace, TT_BinaryOperator) || in addTokenOnNewLine() 737 if (Previous && (Previous->isOneOf(tok::l_paren, tok::comma, tok::colon) || in moveStateToNextToken() 742 (Previous->isNot(tok::l_paren) || Previous->ParameterCount > 1); in moveStateToNextToken() 913 Current.ParentBracket == tok::l_paren) { in moveStatePastScopeOpener()
|
D | FormatToken.h | 322 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square, in opensScope()
|
/external/clang/unittests/Lex/ |
D | LexerTest.cpp | 117 ExpectedTokens.push_back(tok::l_paren); in TEST_F() 183 ExpectedTokens.push_back(tok::l_paren); in TEST_F() 198 ExpectedTokens.push_back(tok::l_paren); in TEST_F() 211 ExpectedTokens.push_back(tok::l_paren); in TEST_F() 224 ExpectedTokens.push_back(tok::l_paren); in TEST_F() 238 ExpectedTokens.push_back(tok::l_paren); in TEST_F() 254 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() 670 TempToken.setKind(tok::l_paren); in GenerateNewArgTokens() 721 assert(Tok.is(tok::l_paren) && "Error computing l-paren-ness?"); in ReadFunctionLikeMacroArgs() 736 assert(Tok.isOneOf(tok::l_paren, tok::comma) && in ReadFunctionLikeMacroArgs() 772 } else if (Tok.is(tok::l_paren)) { in ReadFunctionLikeMacroArgs() 1289 if (Tok.isNot(tok::l_paren)) { in EvaluateHasIncludeCommon() 1292 PP.Diag(LParenLoc, diag::err_pp_expected_after) << II << tok::l_paren; in EvaluateHasIncludeCommon() 1356 PP.Diag(LParenLoc, diag::note_matching) << tok::l_paren; in EvaluateHasIncludeCommon() 1421 if (Tok.isNot(tok::l_paren)) { in EvaluateBuildingModule() 1423 << tok::l_paren; in EvaluateBuildingModule() [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() 1037 if (Tok.isNot(tok::l_paren)) { in HandlePragma() 1195 case tok::l_paren: in HandlePragma()
|
D | PPExpressions.cpp | 92 if (PeekTok.is(tok::l_paren)) { in EvaluateDefined() 131 PP.Diag(LParenLoc, diag::note_matching) << tok::l_paren; in EvaluateDefined() 325 case tok::l_paren: { in EvaluateValue() 344 PP.Diag(Start, diag::note_matching) << tok::l_paren; in EvaluateValue()
|
/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/llvm/lib/TableGen/ |
D | TGLexer.h | 38 l_paren, r_paren, // ( ) enumerator
|
D | TGLexer.cpp | 111 case '(': return tgtok::l_paren; in LexToken()
|