Home
last modified time | relevance | path

Searched refs:l_paren (Results 1 – 25 of 36) sorted by relevance

12

/external/clang/lib/Parse/
DParseTentative.cpp150 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()
236 if (Tok.isNot(tok::l_paren)) { in TryParseSimpleDeclaration()
294 if (Tok.is(tok::l_paren)) { in TryParseInitDeclaratorList()
359 assert(Tok.is(tok::l_paren) && "Expected '('"); in isCXXConditionDeclaration()
429 assert(Tok.is(tok::l_paren) && "Expected '('"); in isCXXTypeId()
589 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 …]
DParseExpr.cpp637 case tok::l_paren: { in ParseCastExpression()
711 if (Next.is(tok::l_paren) && Tok.is(tok::identifier) && in ParseCastExpression()
720 Next.is(tok::l_paren) || in ParseCastExpression()
820 Name, Tok.is(tok::l_paren), in ParseCastExpression()
1015 if (Tok.isNot(tok::l_paren) && in ParseCastExpression()
1105 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseCastExpression()
1267 case tok::l_paren: // p-e: p-e '(' argument-expression-list[opt] ')' in ParsePostfixExpressionSuffix()
1275 BalancedDelimiterTracker PT(*this, tok::l_paren); in ParsePostfixExpressionSuffix()
1299 if (ExpectAndConsume(tok::l_paren)) in ParsePostfixExpressionSuffix()
1329 if (OpKind == tok::l_paren || !LHS.isInvalid()) { in ParsePostfixExpressionSuffix()
[all …]
DParseExprCXX.cpp108 if (!Tok.is(tok::l_paren)) in CheckForLParenAfterColonColon()
626 Tok.is(tok::l_paren), isAddressOfOperand); in ParseCXXIdExpression()
828 if (Tok.is(tok::l_paren)) { in ParseLambdaIntroducer()
829 BalancedDelimiterTracker Parens(*this, tok::l_paren); in ParseLambdaIntroducer()
1010 if (Tok.is(tok::l_paren)) { in ParseLambdaExpressionAfterIntroducer()
1017 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseLambdaExpressionAfterIntroducer()
1242 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseCXXCasts()
1273 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseCXXTypeid()
1338 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseCXXUuidof()
1434 Tok.is(tok::l_paren)); in ParseCXXPseudoDestructor()
[all …]
DParseObjc.cpp204 if (Tok.is(tok::l_paren) && in ParseObjCAtInterfaceDeclaration()
207 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseObjCAtInterfaceDeclaration()
413 if (Tok.is(tok::l_paren)) { in ParseObjCInterfaceDeclList()
509 if (Tok.is(tok::l_paren)) { in ParseObjCInterfaceDeclList()
568 assert(Tok.getKind() == tok::l_paren); in ParseObjCPropertyAttribute()
569 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseObjCPropertyAttribute()
903 assert(Tok.is(tok::l_paren) && "expected ("); in ParseObjCTypeName()
905 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseObjCTypeName()
1004 if (Tok.is(tok::l_paren)) in ParseObjCMethodDecl()
1067 if (Tok.is(tok::l_paren)) // Parse the argument type if present. in ParseObjCMethodDecl()
[all …]
DParseCXXInlineMethods.cpp585 case tok::l_paren: in ConsumeAndStoreUntil()
704 if (Tok.isNot(tok::l_paren)) in ConsumeAndStoreFunctionPrologue()
711 Diag(OpenLoc, diag::note_matching) << tok::l_paren; in ConsumeAndStoreFunctionPrologue()
753 if (!ConsumeAndStoreUntil(tok::l_paren, tok::l_brace, Toks, in ConsumeAndStoreFunctionPrologue()
760 } else if (Tok.isNot(tok::l_paren) && Tok.isNot(tok::l_brace)) { in ConsumeAndStoreFunctionPrologue()
764 << tok::l_paren << tok::l_brace; in ConsumeAndStoreFunctionPrologue()
766 return Diag(Tok.getLocation(), diag::err_expected) << tok::l_paren; in ConsumeAndStoreFunctionPrologue()
771 bool IsLParen = (kind == tok::l_paren); in ConsumeAndStoreFunctionPrologue()
1042 case tok::l_paren: in ConsumeAndStoreInitializer()
DParseStmt.cpp122 WantTypeSpecifiers = nextTok.is(tok::l_paren) || nextTok.is(tok::less) || in StatementFilterCCC()
125 WantExpressionKeywords = nextTok.is(tok::l_paren) || in StatementFilterCCC()
128 WantRemainingKeywords = nextTok.is(tok::l_paren) || nextTok.is(tok::semi) || in StatementFilterCCC()
466 if (ExpectAndConsume(tok::l_paren)) in ParseSEHExceptBlock()
1016 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseParenExprOrCondition()
1069 if (Tok.isNot(tok::l_paren)) { in ParseIfStatement()
1193 if (Tok.isNot(tok::l_paren)) { in ParseSwitchStatement()
1278 if (Tok.isNot(tok::l_paren)) { in ParseWhileStatement()
1385 if (Tok.isNot(tok::l_paren)) { in ParseDoStatement()
1392 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseDoStatement()
[all …]
DParseDecl.cpp130 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, in ParseGNUAttributes()
135 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, "(")) { in ParseGNUAttributes()
152 if (Tok.isNot(tok::l_paren)) { in ParseGNUAttributes()
242 BalancedDelimiterTracker Parens(*this, tok::l_paren); in ParseAttributeWithTypeArg()
336 assert(Tok.is(tok::l_paren) && "Attribute arg list not starting with '('"); in ParseGNUAttributeArgs()
404 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseMicrosoftDeclSpecArgs()
537 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseMicrosoftDeclSpec()
579 if (Tok.is(tok::l_paren)) in ParseMicrosoftDeclSpec()
772 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseAvailabilityAttribute()
774 Diag(Tok, diag::err_expected) << tok::l_paren; in ParseAvailabilityAttribute()
[all …]
DParseOpenMP.cpp232 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSimpleVarList()
409 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSingleExprClause()
439 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSimpleClause()
484 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPSingleExprWithArgClause()
589 BalancedDelimiterTracker T(*this, tok::l_paren, tok::annot_pragma_openmp_end); in ParseOpenMPVarListClause()
DParseStmtAsm.cpp586 if (getLangOpts().AsmBlocks && Tok.isNot(tok::l_paren) && in ParseAsmStatement()
606 if (Tok.isNot(tok::l_paren)) { in ParseAsmStatement()
611 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseAsmStatement()
741 if (Tok.isNot(tok::l_paren)) { in ParseAsmOperandsOpt()
748 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseAsmOperandsOpt()
DParsePragma.cpp492 if (Tok.isNot(tok::l_paren)) in HandlePragmaMSSection()
542 if (Tok.isNot(tok::l_paren)) in HandlePragmaMSSegment()
654 if (Tok.isNot(tok::l_paren)) { in HandlePragma()
705 if (Tok.isNot(tok::l_paren)) { in HandlePragma()
947 if (Tok.isNot(tok::l_paren)) { in HandlePragma()
1264 if (Tok.isNot(tok::l_paren)) { in HandlePragma()
1360 if (Tok.isNot(tok::l_paren)) { in HandlePragma()
1480 if (Tok.isNot(tok::l_paren)) { in HandlePragma()
1481 PP.Diag(CommentLoc, diag::err_expected) << tok::l_paren; in HandlePragma()
1536 if (Tok.isNot(tok::l_paren)) { in HandlePragma()
[all …]
DParseDeclCXX.cpp679 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseStaticAssertDeclaration()
681 Diag(Tok, diag::err_expected) << tok::l_paren; in ParseStaticAssertDeclaration()
758 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseDecltypeSpecifier()
862 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseUnderlyingTypeSpecifier()
1065 case tok::l_paren: // struct foo {...} ( x); in isValidAfterTypeSpecifier()
1390 } else if (Tok.is(tok::kw_alignas) && NextToken().is(tok::l_paren)) { in ParseClassSpecifier()
2907 } else if(Tok.is(tok::l_paren)) { in ParseMemInitializer()
2908 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseMemInitializer()
2931 return Diag(Tok, diag::err_expected_either) << tok::l_paren << tok::l_brace; in ParseMemInitializer()
2933 return Diag(Tok, diag::err_expected) << tok::l_paren; in ParseMemInitializer()
[all …]
DRAIIObjectsForParser.h369 case tok::l_paren: return P.ParenCount; in getDepth()
391 case tok::l_paren:
DParser.cpp280 case tok::l_paren: in SkipUntil()
786 Tok.is(tok::l_paren)); // int X(0) -> not a function def [C++] in isDeclarationAfterDeclarator()
1263 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseSimpleAsm()
1801 BalancedDelimiterTracker T(*this, tok::l_paren); in ParseMicrosoftIfExistsCondition()
/external/clang/lib/Format/
DTokenAnnotator.cpp90 ScopedContextCreator ContextCreator(*this, tok::l_paren, 1); in parseParens()
111 tok::kw_while, tok::l_paren, tok::comma) || in parseParens()
164 CurrentToken->Previous->Previous->isOneOf(tok::l_paren, in parseParens()
171 (CurrentToken->Next->is(tok::l_paren) || in parseParens()
232 (!Parent || Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
252 if (CurrentToken->Next && CurrentToken->Next->is(tok::l_paren) && in parseSquare()
409 } else if (Contexts.back().ContextKind == tok::l_paren) { in consumeToken()
415 if (CurrentToken && CurrentToken->is(tok::l_paren)) { in consumeToken()
427 case tok::l_paren: in consumeToken()
466 !CurrentToken->isOneOf(tok::l_paren, tok::semi, tok::r_paren)) { in consumeToken()
[all …]
DUnwrappedLineParser.cpp357 tok::l_paren) || in calculateBraceTypes()
435 return I->Tok->is(tok::l_paren); in IsGoogScope()
566 if (FormatTok->Tok.getKind() == tok::l_paren && in parsePPDefine()
738 case tok::l_paren: in parseStructuralElement()
746 if (FormatTok->is(tok::l_paren)) in parseStructuralElement()
787 if (FormatTok->Tok.is(tok::l_paren)) { in parseStructuralElement()
842 case tok::l_paren: in tryToParseLambda()
918 if (FormatTok->isNot(tok::l_paren)) in tryToParseJSFunction()
991 assert(FormatTok->Tok.is(tok::l_paren) && "'(' expected."); in parseParens()
995 case tok::l_paren: in parseParens()
[all …]
DFormatToken.h316 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square) || in opensScope()
DContinuationIndenter.cpp103 Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma)) in canBreak()
304 if (Current.isNot(tok::comment) && Previous.is(tok::l_paren) && in addTokenOnCurrentLine()
461 if (!(Previous.isOneOf(tok::l_paren, tok::l_brace) || in addTokenOnNewLine()
/external/clang/unittests/Lex/
DLexerTest.cpp118 ExpectedTokens.push_back(tok::l_paren); in TEST_F()
184 ExpectedTokens.push_back(tok::l_paren); in TEST_F()
199 ExpectedTokens.push_back(tok::l_paren); in TEST_F()
212 ExpectedTokens.push_back(tok::l_paren); in TEST_F()
225 ExpectedTokens.push_back(tok::l_paren); in TEST_F()
239 ExpectedTokens.push_back(tok::l_paren); in TEST_F()
255 ExpectedTokens.push_back(tok::l_paren); in TEST_F()
/external/clang/lib/Lex/
DPPMacroExpansion.cpp390 if (I->is(tok::l_paren)) { in CheckMatchedBrackets()
474 TempToken.setKind(tok::l_paren); in GenerateNewArgTokens()
525 assert(Tok.is(tok::l_paren) && "Error computing l-paren-ness?"); in ReadFunctionLikeMacroArgs()
540 assert((Tok.is(tok::l_paren) || Tok.is(tok::comma)) && in ReadFunctionLikeMacroArgs()
576 } else if (Tok.is(tok::l_paren)) { in ReadFunctionLikeMacroArgs()
1068 if (Tok.isNot(tok::l_paren)) { in EvaluateHasIncludeCommon()
1071 PP.Diag(LParenLoc, diag::err_pp_expected_after) << II << tok::l_paren; in EvaluateHasIncludeCommon()
1135 PP.Diag(LParenLoc, diag::note_matching) << tok::l_paren; in EvaluateHasIncludeCommon()
1191 if (Tok.isNot(tok::l_paren)) { in EvaluateBuildingModule()
1193 << tok::l_paren; in EvaluateBuildingModule()
[all …]
DPragma.cpp186 if (Tok.isNot(tok::l_paren)) { in Handle_Pragma()
310 if (Tok.isNot(tok::l_paren)) { in HandleMicrosoft__pragma()
321 if (Tok.is(tok::l_paren)) in HandleMicrosoft__pragma()
511 if (Tok.isNot(tok::l_paren)) { in ParsePragmaPushOrPopMacro()
629 if (Tok.isNot(tok::l_paren)) { in HandlePragmaIncludeAlias()
1026 if (Tok.isNot(tok::l_paren)) { in HandlePragma()
1171 case tok::l_paren: in HandlePragma()
DPPExpressions.cpp92 if (PeekTok.is(tok::l_paren)) { in EvaluateDefined()
133 PP.Diag(LParenLoc, diag::note_matching) << tok::l_paren; in EvaluateDefined()
326 case tok::l_paren: { in EvaluateValue()
345 PP.Diag(Start, diag::note_matching) << tok::l_paren; in EvaluateValue()
/external/clang/include/clang/Lex/
DPTHLexer.h88 return x == tok::eof ? 2 : x == tok::l_paren; in isNextPPTokenLParen()
/external/clang/lib/ARCMigrate/
DTransforms.cpp419 if (tok.isNot(tok::l_paren)) return false; in rewritePropertyAttribute()
455 if (BeforeTok.is(tok::l_paren) && AfterTok.is(tok::r_paren)) { in rewritePropertyAttribute()
458 } else if (BeforeTok.is(tok::l_paren) && AfterTok.is(tok::comma)) { in rewritePropertyAttribute()
501 if (tok.isNot(tok::l_paren)) { in addPropertyAttribute()
/external/llvm/lib/TableGen/
DTGLexer.h38 l_paren, r_paren, // ( ) enumerator
DTGLexer.cpp111 case '(': return tgtok::l_paren; in LexToken()

12