Home
last modified time | relevance | path

Searched refs:GetLookAheadToken (Results 1 – 10 of 10) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExprCXX.cpp90 Token SecondToken = GetLookAheadToken(2); in CheckForTemplateAndDigraph()
188 GetLookAheadToken(1).is(tok::ellipsis) && in ParseOptionalCXXScopeSpecifier()
189 GetLookAheadToken(2).is(tok::l_square) && in ParseOptionalCXXScopeSpecifier()
190 !GetLookAheadToken(3).is(tok::r_square)) { in ParseOptionalCXXScopeSpecifier()
335 if (CheckForDestructor && GetLookAheadToken(2).is(tok::tilde)) { in ParseOptionalCXXScopeSpecifier()
419 if (Next.is(tok::coloncolon) && GetLookAheadToken(2).is(tok::l_brace)) { in ParseOptionalCXXScopeSpecifier()
431 if (CheckForDestructor && GetLookAheadToken(2).is(tok::tilde)) { in ParseOptionalCXXScopeSpecifier()
437 const Token &Next2 = GetLookAheadToken(2); in ParseOptionalCXXScopeSpecifier()
703 const Token After = GetLookAheadToken(2); in TryParseLambdaExpression()
1708 if (GetLookAheadToken(1).is(tok::ellipsis) && in ParseCXXPseudoDestructor()
[all …]
H A DParseTentative.cpp603 if (GetLookAheadToken(2).is(tok::kw_using)) in isCXX11AttributeSpecifier()
1010 (GetLookAheadToken(Lookahead + 1) in isCXXDeclarationSpecifier()
1032 GetLookAheadToken(Lookahead + 1).isOneOf(tok::amp, tok::ampamp))); in isCXXDeclarationSpecifier()
1036 if (GetLookAheadToken(1).is(tok::ellipsis) && in isCXXDeclarationSpecifier()
1037 GetLookAheadToken(2).is(tok::l_square)) { in isCXXDeclarationSpecifier()
H A DParseTemplate.cpp407 switch (GetLookAheadToken(2).getKind()) { in isStartOfTemplateTypeParameter()
426 !GetLookAheadToken(Tok.is(tok::annot_cxxscope) ? 2 : 1) in isStartOfTemplateTypeParameter()
445 Next = GetLookAheadToken(2); in isStartOfTemplateTypeParameter()
H A DParseObjc.cpp226 !isKnownToBeTypeSpecifier(GetLookAheadToken(1))) { // we have a category. in ParseObjCAtInterfaceDeclaration()
2276 Token AfterAt = GetLookAheadToken(1); in ParseObjCTryStmt()
2602 if (GetLookAheadToken(1).is(tok::l_brace) && in ParseObjCAtExpression()
2691 return GetLookAheadToken(1).is(tok::identifier) && in isSimpleObjCMessageExpression()
2692 GetLookAheadToken(2).is(tok::identifier); in isSimpleObjCMessageExpression()
2712 const Token &AfterNext = GetLookAheadToken(2); in isStartOfObjCClassMessageMissingOpenBracket()
H A DParseDecl.cpp3282 const Token &Next = HasScope ? GetLookAheadToken(2) : NextToken(); in DiagnoseMissingSemiAfterTagDefinition()
3396 !DS.hasTypeSpecifier() && GetLookAheadToken(1).is(tok::less)) in ParseDeclarationSpecifiers()
4094 if (isKnownToBeTypeSpecifier(GetLookAheadToken(1))) { in ParseDeclarationSpecifiers()
5917 GetLookAheadToken(2).isOneOf(tok::kw_auto, tok::kw_decltype); in isDeclarationSpecifier()
7262 GetLookAheadToken(0).is(tok::kw_noexcept) && in ParseFunctionDeclarator()
7263 GetLookAheadToken(1).is(tok::l_paren) && in ParseFunctionDeclarator()
7264 GetLookAheadToken(2).is(tok::kw_noexcept) && in ParseFunctionDeclarator()
7265 GetLookAheadToken(3).is(tok::l_paren) && in ParseFunctionDeclarator()
7266 GetLookAheadToken(4).is(tok::identifier) && in ParseFunctionDeclarator()
7267 GetLookAheadToken(4).getIdentifierInfo()->isStr("swap")) { in ParseFunctionDeclarator()
[all …]
H A DParseStmt.cpp1077 while (GetLookAheadToken(LookAhead).is(tok::semi)) { in handleExprStmt()
1083 IsStmtExprResult = GetLookAheadToken(LookAhead).is(tok::r_brace) && in handleExprStmt()
1084 GetLookAheadToken(LookAhead + 1).is(tok::r_paren); in handleExprStmt()
H A DParseDeclCXX.cpp74 GetLookAheadToken(2).is(tok::identifier)))) { in ParseNamespace()
983 const Token &T = GetLookAheadToken(I); in ParseStaticAssertDeclaration()
1185 !GetLookAheadToken(2).is(tok::l_square)) { in ParsePackIndexingType()
2730 isAccessDecl = GetLookAheadToken(2).is(tok::semi); in ParseCXXClassMemberDeclaration()
2998 auto &After = GetLookAheadToken(2); in ParseCXXClassMemberDeclaration()
H A DParseExpr.cpp875 GetLookAheadToken(2).is(tok::l_square)) { in ParseCastExpression()
2844 GetLookAheadToken(1).isNot(tok::period)) { in ParseParenExpression()
H A DParser.cpp639 GetLookAheadToken(2).isNot(tok::coloncolon)) { in ParseTopLevelDecl()
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h316 const Token &GetLookAheadToken(unsigned N) { in GetLookAheadToken() function