Searched refs:TryConsumeToken (Results 1 – 12 of 12) sorted by relevance
/external/clang/lib/Parse/ |
D | ParseTemplate.cpp | 104 TryConsumeToken(tok::kw_export, ExportLoc); in ParseTemplateDeclarationOrSpecialization() 108 if (!TryConsumeToken(tok::kw_template, TemplateLoc)) { in ParseTemplateDeclarationOrSpecialization() 120 TryConsumeToken(tok::semi); in ParseTemplateDeclarationOrSpecialization() 300 if (!TryConsumeToken(tok::less, LAngleLoc)) { in ParseTemplateParameters() 319 } else if (!TryConsumeToken(tok::greater, RAngleLoc) && Failed) { in ParseTemplateParameters() 477 if (TryConsumeToken(tok::ellipsis, EllipsisLoc)) { in ParseTypeParameter() 501 if (TryConsumeToken(tok::ellipsis, EllipsisLoc)) in ParseTypeParameter() 509 if (TryConsumeToken(tok::equal, EqualLoc)) in ParseTypeParameter() 550 if (!TryConsumeToken(tok::kw_class)) { in ParseTemplateTemplateParameter() 576 if (TryConsumeToken(tok::ellipsis, EllipsisLoc)) in ParseTemplateTemplateParameter() [all …]
|
D | ParseDeclCXX.cpp | 493 if (TryConsumeToken(tok::kw_typename, TypenameLoc)) in ParseUsingDeclaration() 1714 if (!TryConsumeToken(tok::comma)) in ParseBaseClause() 1741 if (TryConsumeToken(tok::kw_virtual)) in ParseBaseSpecifier() 1779 TryConsumeToken(tok::ellipsis, EllipsisLoc); in ParseBaseSpecifier() 1938 if (!DeclaratorInfo.isFunctionDeclarator() && TryConsumeToken(tok::colon)) { in ParseCXXMemberDeclaratorBeforeInitializer() 2152 if (TryConsumeToken(tok::semi)) { in ParseCXXClassMemberDeclaration() 2185 TryConsumeToken(tok::semi); in ParseCXXClassMemberDeclaration() 2240 TryConsumeToken(tok::semi); in ParseCXXClassMemberDeclaration() 2393 if (!TryConsumeToken(tok::comma, CommaLoc)) in ParseCXXClassMemberDeclaration() 2427 TryConsumeToken(tok::semi); in ParseCXXClassMemberDeclaration() [all …]
|
D | ParseDecl.cpp | 142 if (TryConsumeToken(tok::comma)) in ParseGNUAttributes() 309 } while (TryConsumeToken(tok::comma)); in ParseAttributeArgsCommon() 469 if (!TryConsumeToken(tok::equal)) { in ParseMicrosoftDeclSpecArgs() 493 if (TryConsumeToken(tok::comma)) in ParseMicrosoftDeclSpecArgs() 546 if (TryConsumeToken(tok::comma)) in ParseMicrosoftDeclSpec() 873 } while (TryConsumeToken(tok::comma)); in ParseAvailabilityAttribute() 951 if (!TryConsumeToken(tok::colon)) { in ParseObjCBridgeRelatedAttribute() 957 if (!TryConsumeToken(tok::comma)) { in ParseObjCBridgeRelatedAttribute() 1169 while (TryConsumeToken(tok::comma)) { in ParseTypeTagForDatatypeAttribute() 1465 TryConsumeToken(tok::semi); in SkipMalformedDecl() [all …]
|
D | ParseStmt.cpp | 366 if (!TryConsumeToken(tok::semi) && !Res.isInvalid()) { in ParseStatementOrDeclarationAfterAttributes() 649 TryConsumeToken(tok::colon, ColonLoc); in ParseCaseStatement() 662 if (TryConsumeToken(tok::ellipsis, DotDotDotLoc)) { in ParseCaseStatement() 667 TryConsumeToken(tok::colon, ColonLoc); in ParseCaseStatement() 676 if (TryConsumeToken(tok::colon, ColonLoc)) { in ParseCaseStatement() 677 } else if (TryConsumeToken(tok::semi, ColonLoc) || in ParseCaseStatement() 678 TryConsumeToken(tok::coloncolon, ColonLoc)) { in ParseCaseStatement() 754 if (TryConsumeToken(tok::colon, ColonLoc)) { in ParseDefaultStatement() 755 } else if (TryConsumeToken(tok::semi, ColonLoc)) { in ParseDefaultStatement() 921 if (!TryConsumeToken(tok::comma)) in ParseCompoundStatementBody()
|
D | ParseCXXInlineMethods.cpp | 66 if (TryConsumeToken(tok::equal)) { in ParseCXXInlineMethodDef() 74 if (TryConsumeToken(tok::kw_delete, KWLoc)) { in ParseCXXInlineMethodDef() 80 } else if (TryConsumeToken(tok::kw_default, KWLoc)) { in ParseCXXInlineMethodDef() 342 if (!TryConsumeToken(tok::cxx_defaultarg_end)) { in ParseLexedMethodDeclaration()
|
D | ParseObjc.cpp | 118 if (!TryConsumeToken(tok::comma)) in ParseObjCAtClassDeclaration() 1214 if (!TryConsumeToken(tok::comma)) in ParseObjCProtocolReferences() 1305 if (TryConsumeToken(tok::at)) { // parse objc-visibility-spec in ParseObjCClassInstanceVariables() 1423 if (TryConsumeToken(tok::semi)) { // forward declaration of one protocol. in ParseObjCAtProtocolDeclaration() 1557 if (TryConsumeToken(tok::colon)) { in ParseObjCAtImplementationDeclaration() 1709 if (TryConsumeToken(tok::equal)) { in ParseObjCPropertySynthesize() 2771 TryConsumeToken(tok::ellipsis, EllipsisLoc); in ParseObjCDictionaryLiteral() 2780 if (!TryConsumeToken(tok::comma) && Tok.isNot(tok::r_brace)) in ParseObjCDictionaryLiteral() 2874 if (TryConsumeToken(tok::coloncolon)) { // Handle :: in C++. in ParseObjCSelectorExpression()
|
D | ParseTentative.cpp | 323 if (!TryConsumeToken(tok::comma)) in TryParseInitDeclaratorList() 597 TryConsumeToken(tok::ellipsis); in isCXX11AttributeSpecifier() 599 if (!TryConsumeToken(tok::comma)) in isCXX11AttributeSpecifier() 1724 if (!TryConsumeToken(tok::comma)) in TryParseParameterDeclarationClause()
|
D | Parser.cpp | 158 if (TryConsumeToken(tok::semi)) in ExpectAndConsumeSemi() 1044 if (TryConsumeToken(tok::equal)) { in ParseFunctionDefinition() 1050 if (TryConsumeToken(tok::kw_delete, KWLoc)) { in ParseFunctionDefinition() 1056 } else if (TryConsumeToken(tok::kw_default, KWLoc)) { in ParseFunctionDefinition() 1125 if (TryConsumeToken(tok::semi)) { in ParseKNRParamDeclarations() 1207 TryConsumeToken(tok::semi); in ParseKNRParamDeclarations()
|
D | ParseStmtAsm.cpp | 682 if (!TryConsumeToken(tok::comma)) in ParseAsmStatement() 758 if (!TryConsumeToken(tok::comma)) in ParseAsmOperandsOpt()
|
D | ParseExprCXX.cpp | 241 if (!TryConsumeToken(tok::coloncolon, CCLoc)) { in ParseOptionalCXXScopeSpecifier() 852 TryConsumeToken(tok::equal); in ParseLambdaIntroducer() 902 TryConsumeToken(tok::ellipsis, EllipsisLoc); in ParseLambdaIntroducer() 1044 if (TryConsumeToken(tok::kw_mutable, MutableLoc)) in ParseLambdaExpressionAfterIntroducer() 2817 } while (TryConsumeToken(tok::comma)); in ParseTypeTrait()
|
D | ParseExpr.cpp | 273 if (!TryConsumeToken(tok::colon, ColonLoc)) { in ParseRHSOfBinaryExpression() 1287 if (TryConsumeToken(tok::greatergreatergreater, CloseLoc)) { in ParsePostfixExpressionSuffix() 1952 if (!TryConsumeToken(tok::kw___bridge)) { in ParseParenExpression() 2272 } while (TryConsumeToken(tok::comma)); in ParseGenericSelectionExpression()
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 304 bool TryConsumeToken(tok::TokenKind Expected) { in TryConsumeToken() function 314 bool TryConsumeToken(tok::TokenKind Expected, SourceLocation &Loc) { in TryConsumeToken() function 315 if (!TryConsumeToken(Expected)) in TryConsumeToken()
|