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()
136 if (TryConsumeToken(tok::kw_requires)) { in ParseTemplateDeclarationOrSpecialization()
142 TryConsumeToken(tok::semi); in ParseTemplateDeclarationOrSpecialization()
330 if (!TryConsumeToken(tok::less, LAngleLoc)) { in ParseTemplateParameters()
349 } else if (!TryConsumeToken(tok::greater, RAngleLoc) && Failed) { in ParseTemplateParameters()
507 if (TryConsumeToken(tok::ellipsis, EllipsisLoc)) { in ParseTypeParameter()
531 if (TryConsumeToken(tok::ellipsis, EllipsisLoc)) in ParseTypeParameter()
539 if (TryConsumeToken(tok::equal, EqualLoc)) in ParseTypeParameter()
[all …]
DParseDeclCXX.cpp509 if (TryConsumeToken(tok::kw_typename, TypenameLoc)) in ParseUsingDeclaration()
1842 if (!TryConsumeToken(tok::comma)) in ParseBaseClause()
1869 if (TryConsumeToken(tok::kw_virtual)) in ParseBaseSpecifier()
1916 TryConsumeToken(tok::ellipsis, EllipsisLoc); in ParseBaseSpecifier()
2088 if (!DeclaratorInfo.isFunctionDeclarator() && TryConsumeToken(tok::colon)) { in ParseCXXMemberDeclaratorBeforeInitializer()
2401 if (TryConsumeToken(tok::semi)) { in ParseCXXClassMemberDeclaration()
2448 TryConsumeToken(tok::semi); in ParseCXXClassMemberDeclaration()
2496 TryConsumeToken(tok::semi); in ParseCXXClassMemberDeclaration()
2666 if (!TryConsumeToken(tok::comma, CommaLoc)) in ParseCXXClassMemberDeclaration()
2700 TryConsumeToken(tok::semi); in ParseCXXClassMemberDeclaration()
[all …]
DParseStmt.cpp372 if (!TryConsumeToken(tok::semi) && !Res.isInvalid()) { in ParseStatementOrDeclarationAfterAttributes()
675 TryConsumeToken(tok::colon, ColonLoc); in ParseCaseStatement()
688 if (TryConsumeToken(tok::ellipsis, DotDotDotLoc)) { in ParseCaseStatement()
693 TryConsumeToken(tok::colon, ColonLoc); in ParseCaseStatement()
702 if (TryConsumeToken(tok::colon, ColonLoc)) { in ParseCaseStatement()
703 } else if (TryConsumeToken(tok::semi, ColonLoc) || in ParseCaseStatement()
704 TryConsumeToken(tok::coloncolon, ColonLoc)) { in ParseCaseStatement()
780 if (TryConsumeToken(tok::colon, ColonLoc)) { in ParseDefaultStatement()
781 } else if (TryConsumeToken(tok::semi, ColonLoc)) { in ParseDefaultStatement()
945 if (!TryConsumeToken(tok::comma)) in ParseCompoundStatementBody()
DParseDecl.cpp143 if (TryConsumeToken(tok::comma)) in ParseGNUAttributes()
316 } while (TryConsumeToken(tok::comma)); in ParseAttributeArgsCommon()
470 if (!TryConsumeToken(tok::equal)) { in ParseMicrosoftDeclSpecArgs()
494 if (TryConsumeToken(tok::comma)) in ParseMicrosoftDeclSpecArgs()
550 if (TryConsumeToken(tok::comma)) in ParseMicrosoftDeclSpecs()
989 } while (TryConsumeToken(tok::comma)); in ParseAvailabilityAttribute()
1070 if (!TryConsumeToken(tok::colon)) { in ParseObjCBridgeRelatedAttribute()
1076 if (!TryConsumeToken(tok::comma)) { in ParseObjCBridgeRelatedAttribute()
1292 while (TryConsumeToken(tok::comma)) { in ParseTypeTagForDatatypeAttribute()
1624 TryConsumeToken(tok::semi); in SkipMalformedDecl()
[all …]
DParseObjc.cpp149 if (!TryConsumeToken(tok::comma)) in ParseObjCAtClassDeclaration()
525 if (TryConsumeToken(tok::colon, colonLoc)) { in parseObjCTypeParamListOrProtocolRefs()
558 } while (TryConsumeToken(tok::comma)); in parseObjCTypeParamListOrProtocolRefs()
1585 if (!TryConsumeToken(tok::comma)) in ParseObjCProtocolReferences()
1682 } while (TryConsumeToken(tok::comma)); in parseObjCTypeArgsOrProtocolQualifiers()
1742 TryConsumeToken(tok::ellipsis, ellipsisLoc); in parseObjCTypeArgsOrProtocolQualifiers()
1752 } while (TryConsumeToken(tok::comma)); in parseObjCTypeArgsOrProtocolQualifiers()
1918 if (TryConsumeToken(tok::at)) { // parse objc-visibility-spec in ParseObjCClassInstanceVariables()
2024 if (TryConsumeToken(tok::semi)) { // forward declaration of one protocol. in ParseObjCAtProtocolDeclaration()
2179 if (TryConsumeToken(tok::colon)) { in ParseObjCAtImplementationDeclaration()
[all …]
DParseTentative.cpp325 if (!TryConsumeToken(tok::comma)) in TryParseInitDeclaratorList()
598 TryConsumeToken(tok::ellipsis); in isCXX11AttributeSpecifier()
600 if (!TryConsumeToken(tok::comma)) in isCXX11AttributeSpecifier()
1750 if (!TryConsumeToken(tok::comma)) in TryParseParameterDeclarationClause()
DParser.cpp178 if (TryConsumeToken(tok::semi)) in ExpectAndConsumeSemi()
1090 if (TryConsumeToken(tok::equal)) { in ParseFunctionDefinition()
1095 if (TryConsumeToken(tok::kw_delete, KWLoc)) { in ParseFunctionDefinition()
1102 } else if (TryConsumeToken(tok::kw_default, KWLoc)) { in ParseFunctionDefinition()
1196 if (TryConsumeToken(tok::semi)) { in ParseKNRParamDeclarations()
1278 TryConsumeToken(tok::semi); in ParseKNRParamDeclarations()
DParseCXXInlineMethods.cpp59 if (TryConsumeToken(tok::equal)) { in ParseCXXInlineMethodDef()
68 if (TryConsumeToken(tok::kw_delete, KWLoc)) { in ParseCXXInlineMethodDef()
78 } else if (TryConsumeToken(tok::kw_default, KWLoc)) { in ParseCXXInlineMethodDef()
DParseStmtAsm.cpp741 if (!TryConsumeToken(tok::comma)) in ParseAsmStatement()
817 if (!TryConsumeToken(tok::comma)) in ParseAsmOperandsOpt()
DParseExprCXX.cpp263 if (!TryConsumeToken(tok::coloncolon, CCLoc)) { in ParseOptionalCXXScopeSpecifier()
905 if (TryConsumeToken(tok::equal)) in ParseLambdaIntroducer()
958 TryConsumeToken(tok::ellipsis, EllipsisLoc); in ParseLambdaIntroducer()
1105 if (TryConsumeToken(tok::kw_mutable, MutableLoc)) in ParseLambdaExpressionAfterIntroducer()
2930 } while (TryConsumeToken(tok::comma)); in ParseTypeTrait()
DParseExpr.cpp311 if (!TryConsumeToken(tok::colon, ColonLoc)) { in ParseRHSOfBinaryExpression()
1476 if (TryConsumeToken(tok::greatergreatergreater, CloseLoc)) { in ParsePostfixExpressionSuffix()
2165 if (!TryConsumeToken(tok::kw___bridge)) { in ParseParenExpression()
2520 } while (TryConsumeToken(tok::comma)); in ParseGenericSelectionExpression()
/external/clang/include/clang/Parse/
DParser.h293 bool TryConsumeToken(tok::TokenKind Expected) { in TryConsumeToken() function
303 bool TryConsumeToken(tok::TokenKind Expected, SourceLocation &Loc) { in TryConsumeToken() function
304 if (!TryConsumeToken(Expected)) in TryConsumeToken()