Home
last modified time | relevance | path

Searched refs:TryConsumeToken (Results 1 – 12 of 12) sorted by relevance

/external/clang/lib/Parse/
DParseTemplate.cpp105 TryConsumeToken(tok::kw_export, ExportLoc); in ParseTemplateDeclarationOrSpecialization()
109 if (!TryConsumeToken(tok::kw_template, TemplateLoc)) { in ParseTemplateDeclarationOrSpecialization()
121 TryConsumeToken(tok::semi); in ParseTemplateDeclarationOrSpecialization()
130 if (TryConsumeToken(tok::kw_requires)) { in ParseTemplateDeclarationOrSpecialization()
136 TryConsumeToken(tok::semi); in ParseTemplateDeclarationOrSpecialization()
335 if (!TryConsumeToken(tok::less, LAngleLoc)) { in ParseTemplateParameters()
354 } else if (!TryConsumeToken(tok::greater, RAngleLoc) && Failed) { in ParseTemplateParameters()
512 if (TryConsumeToken(tok::ellipsis, EllipsisLoc)) { in ParseTypeParameter()
536 if (TryConsumeToken(tok::ellipsis, EllipsisLoc)) in ParseTypeParameter()
544 if (TryConsumeToken(tok::equal, EqualLoc)) in ParseTypeParameter()
[all …]
DParseDeclCXX.cpp509 if (TryConsumeToken(tok::kw_typename, TypenameLoc)) in ParseUsingDeclaration()
1857 if (!TryConsumeToken(tok::comma)) in ParseBaseClause()
1884 if (TryConsumeToken(tok::kw_virtual)) in ParseBaseSpecifier()
1931 TryConsumeToken(tok::ellipsis, EllipsisLoc); in ParseBaseSpecifier()
2103 if (!DeclaratorInfo.isFunctionDeclarator() && TryConsumeToken(tok::colon)) { in ParseCXXMemberDeclaratorBeforeInitializer()
2416 if (TryConsumeToken(tok::semi)) { in ParseCXXClassMemberDeclaration()
2468 TryConsumeToken(tok::semi); in ParseCXXClassMemberDeclaration()
2516 TryConsumeToken(tok::semi); in ParseCXXClassMemberDeclaration()
2686 if (!TryConsumeToken(tok::comma, CommaLoc)) in ParseCXXClassMemberDeclaration()
2720 TryConsumeToken(tok::semi); in ParseCXXClassMemberDeclaration()
[all …]
DParseStmt.cpp384 if (!TryConsumeToken(tok::semi) && !Res.isInvalid()) { in ParseStatementOrDeclarationAfterAttributes()
688 TryConsumeToken(tok::colon, ColonLoc); in ParseCaseStatement()
701 if (TryConsumeToken(tok::ellipsis, DotDotDotLoc)) { in ParseCaseStatement()
706 TryConsumeToken(tok::colon, ColonLoc); in ParseCaseStatement()
715 if (TryConsumeToken(tok::colon, ColonLoc)) { in ParseCaseStatement()
716 } else if (TryConsumeToken(tok::semi, ColonLoc) || in ParseCaseStatement()
717 TryConsumeToken(tok::coloncolon, ColonLoc)) { in ParseCaseStatement()
795 if (TryConsumeToken(tok::colon, ColonLoc)) { in ParseDefaultStatement()
796 } else if (TryConsumeToken(tok::semi, ColonLoc)) { in ParseDefaultStatement()
964 if (!TryConsumeToken(tok::comma)) in ParseCompoundStatementBody()
DParseDecl.cpp144 if (TryConsumeToken(tok::comma)) in ParseGNUAttributes()
317 } while (TryConsumeToken(tok::comma)); in ParseAttributeArgsCommon()
471 if (!TryConsumeToken(tok::equal)) { in ParseMicrosoftDeclSpecArgs()
495 if (TryConsumeToken(tok::comma)) in ParseMicrosoftDeclSpecArgs()
551 if (TryConsumeToken(tok::comma)) in ParseMicrosoftDeclSpecs()
1020 } while (TryConsumeToken(tok::comma)); in ParseAvailabilityAttribute()
1101 if (!TryConsumeToken(tok::colon)) { in ParseObjCBridgeRelatedAttribute()
1107 if (!TryConsumeToken(tok::comma)) { in ParseObjCBridgeRelatedAttribute()
1323 while (TryConsumeToken(tok::comma)) { in ParseTypeTagForDatatypeAttribute()
1660 TryConsumeToken(tok::semi); in SkipMalformedDecl()
[all …]
DParseObjc.cpp154 if (!TryConsumeToken(tok::comma)) in ParseObjCAtClassDeclaration()
518 if (TryConsumeToken(tok::colon, colonLoc)) { in parseObjCTypeParamListOrProtocolRefs()
544 } while (TryConsumeToken(tok::comma)); in parseObjCTypeParamListOrProtocolRefs()
1572 if (!TryConsumeToken(tok::comma)) in ParseObjCProtocolReferences()
1668 } while (TryConsumeToken(tok::comma)); in parseObjCTypeArgsOrProtocolQualifiers()
1750 TryConsumeToken(tok::ellipsis, ellipsisLoc); in parseObjCTypeArgsOrProtocolQualifiers()
1764 } while (TryConsumeToken(tok::comma)); in parseObjCTypeArgsOrProtocolQualifiers()
1943 if (TryConsumeToken(tok::at)) { // parse objc-visibility-spec in ParseObjCClassInstanceVariables()
2048 if (TryConsumeToken(tok::semi)) { // forward declaration of one protocol. in ParseObjCAtProtocolDeclaration()
2203 if (TryConsumeToken(tok::colon)) { in ParseObjCAtImplementationDeclaration()
[all …]
DParseTentative.cpp326 if (!TryConsumeToken(tok::comma)) in TryParseInitDeclaratorList()
452 if (!TryConsumeToken(tok::comma)) in isCXXConditionDeclarationOrInitStatement()
669 TryConsumeToken(tok::ellipsis); in isCXX11AttributeSpecifier()
671 if (!TryConsumeToken(tok::comma)) in isCXX11AttributeSpecifier()
1819 if (!TryConsumeToken(tok::comma)) in TryParseParameterDeclarationClause()
DParser.cpp178 if (TryConsumeToken(tok::semi)) in ExpectAndConsumeSemi()
1109 if (TryConsumeToken(tok::equal)) { in ParseFunctionDefinition()
1114 if (TryConsumeToken(tok::kw_delete, KWLoc)) { in ParseFunctionDefinition()
1121 } else if (TryConsumeToken(tok::kw_default, KWLoc)) { in ParseFunctionDefinition()
1222 if (TryConsumeToken(tok::semi)) { in ParseKNRParamDeclarations()
1304 TryConsumeToken(tok::semi); in ParseKNRParamDeclarations()
DParseCXXInlineMethods.cpp60 if (TryConsumeToken(tok::equal)) { in ParseCXXInlineMethodDef()
69 if (TryConsumeToken(tok::kw_delete, KWLoc)) { in ParseCXXInlineMethodDef()
79 } else if (TryConsumeToken(tok::kw_default, KWLoc)) { in ParseCXXInlineMethodDef()
DParseStmtAsm.cpp786 if (!TryConsumeToken(tok::comma)) in ParseAsmStatement()
862 if (!TryConsumeToken(tok::comma)) in ParseAsmOperandsOpt()
DParseExpr.cpp314 if (!TryConsumeToken(tok::colon, ColonLoc)) { in ParseRHSOfBinaryExpression()
1524 if (TryConsumeToken(tok::greatergreatergreater, CloseLoc)) { in ParsePostfixExpressionSuffix()
2213 if (!TryConsumeToken(tok::kw___bridge)) { in ParseParenExpression()
2568 } while (TryConsumeToken(tok::comma)); in ParseGenericSelectionExpression()
DParseExprCXX.cpp263 if (!TryConsumeToken(tok::coloncolon, CCLoc)) { in ParseOptionalCXXScopeSpecifier()
916 if (TryConsumeToken(tok::equal)) in ParseLambdaIntroducer()
969 TryConsumeToken(tok::ellipsis, EllipsisLoc); in ParseLambdaIntroducer()
3006 } while (TryConsumeToken(tok::comma)); in ParseTypeTrait()
/external/clang/include/clang/Parse/
DParser.h299 bool TryConsumeToken(tok::TokenKind Expected) { in TryConsumeToken() function
309 bool TryConsumeToken(tok::TokenKind Expected, SourceLocation &Loc) { in TryConsumeToken() function
310 if (!TryConsumeToken(Expected)) in TryConsumeToken()