/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParseInit.cpp | 49 case tok::r_square: in MayBeDesignationStart() 270 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator() 308 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator() 320 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator() 350 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator() 360 Tok.isNot(tok::r_square)) { in ParseInitializerWithPotentialDesignator() 377 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator()
|
H A D | ParseTentative.cpp | 766 bool IsAttribute = SkipUntil(tok::r_square); in isCXX11AttributeSpecifier() 767 IsAttribute &= Tok.is(tok::r_square); in isCXX11AttributeSpecifier() 804 if (Tok.is(tok::r_square)) in isCXX11AttributeSpecifier() 827 while (Tok.isNot(tok::r_square)) { in isCXX11AttributeSpecifier() 868 if (Tok.is(tok::r_square)) { in isCXX11AttributeSpecifier() 870 IsAttribute = Tok.is(tok::r_square); in isCXX11AttributeSpecifier() 893 if (!SkipUntil(tok::r_square) || Tok.isNot(tok::r_square)) in TrySkipAttributes() 965 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in TryParseOperatorId() 979 if (NextToken().is(tok::r_square)) { in TryParseOperatorId() 2289 if (!SkipUntil(tok::r_square, tok::comma, StopAtSemi | StopBeforeMatch)) in TryParseBracketDeclarator() [all …]
|
H A D | ParseCXXInlineMethods.cpp | 919 ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil() 939 case tok::r_square: in ConsumeAndStoreUntil() 1050 if (!ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/true)) { in ConsumeAndStoreFunctionPrologue() 1051 Diag(Tok.getLocation(), diag::err_expected) << tok::r_square; in ConsumeAndStoreFunctionPrologue() 1406 ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreInitializer() 1429 case tok::r_square: in ConsumeAndStoreInitializer()
|
H A D | ParseObjc.cpp | 3065 if (AfterNext.isOneOf(tok::colon, tok::r_square)) { in isStartOfObjCClassMessageMissingOpenBracket() 3113 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpression() 3139 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpression() 3153 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpression() 3172 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpression() 3257 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpressionBody() 3293 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpressionBody() 3339 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpressionBody() 3352 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpressionBody() 3356 if (Tok.isNot(tok::r_square)) { in ParseObjCMessageExpressionBody() [all …]
|
H A D | ParseExpr.cpp | 485 Tok.isOneOf(tok::colon, tok::r_square) && in ParseRHSOfBinaryExpression() 1278 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) || in ParseCastExpression() 1295 Next.is(tok::colon) || Next.is(tok::r_square)) in ParseCastExpression() 2006 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) { in ParsePostfixExpressionSuffix() 2063 } else if (Tok.isNot(tok::r_square)) { in ParsePostfixExpressionSuffix() 2080 if (Tok.isNot(tok::r_square)) in ParsePostfixExpressionSuffix() 2088 if (Tok.isNot(tok::r_square) && in ParsePostfixExpressionSuffix() 2101 if (Tok.isNot(tok::r_square)) { in ParsePostfixExpressionSuffix() 2111 !Stride.isInvalid() && Tok.is(tok::r_square)) { in ParsePostfixExpressionSuffix() 2980 while (!SkipUntil(tok::r_square, tok::annot_pragma_openmp_end, in tryParseOpenMPArrayShapingCastPart() [all …]
|
H A D | ParseExprCXX.cpp | 812 SkipUntil(tok::r_square, StopAtSemi); in ParseLambdaExpression() 835 if (Next.is(tok::r_square) || // [] in TryParseLambdaExpression() 838 After.isOneOf(tok::r_square, tok::comma)) || in TryParseLambdaExpression() 840 After.is(tok::r_square)) || in TryParseLambdaExpression() 933 (NextToken().is(tok::comma) || NextToken().is(tok::r_square))) { in ParseLambdaIntroducer() 949 while (Tok.isNot(tok::r_square)) { in ParseLambdaIntroducer() 1010 NextToken().isOneOf(tok::comma, tok::r_square) && in ParseLambdaIntroducer() 1139 NextToken().isOneOf(tok::colon, tok::r_square)) { in ParseLambdaIntroducer() 1960 case tok::r_square: in ParseThrowExpression() 3433 First ? (Tok.is(tok::r_square) ? ExprResult() : ParseExpression()) in ParseDirectNewDeclarator() [all …]
|
H A D | ParseDeclCXX.cpp | 2049 if (!SkipUntil(tok::r_square, StopAtSemi)) in ParseClassSpecifier() 4626 SkipUntil(tok::r_paren, tok::r_square, StopAtSemi | StopBeforeMatch); in ParseCXXAssumeAttributeArg() 4632 if (!Tok.isOneOf(tok::r_paren, tok::r_square)) { in ParseCXXAssumeAttributeArg() 4859 SkipUntil(tok::r_square, tok::colon, StopBeforeMatch); in ParseCXX11AttributeSpecifierInternal() 4866 while (!Tok.isOneOf(tok::r_square, tok::semi, tok::eof)) { in ParseCXX11AttributeSpecifierInternal() 4871 SkipUntil(tok::r_square, StopAtSemi | StopBeforeMatch); in ParseCXX11AttributeSpecifierInternal() 4901 SkipUntil(tok::r_square, tok::comma, StopAtSemi | StopBeforeMatch); in ParseCXX11AttributeSpecifierInternal() 4943 if (ExpectAndConsume(tok::r_square)) in ParseCXX11AttributeSpecifierInternal() 4944 SkipUntil(tok::r_square); in ParseCXX11AttributeSpecifierInternal() 4945 else if (Tok.is(tok::r_square)) in ParseCXX11AttributeSpecifierInternal() [all …]
|
H A D | Parser.cpp | 173 if ((Tok.is(tok::r_paren) || Tok.is(tok::r_square)) && in ExpectAndConsumeSemi() 360 SkipUntil(tok::r_square, StopAtCodeCompletion); in SkipUntil() 362 SkipUntil(tok::r_square); in SkipUntil() 391 case tok::r_square: in SkipUntil() 2812 P.Tok.isNot(tok::r_square) && in diagnoseMissingClose()
|
H A D | ParseDecl.cpp | 1860 SkipUntil(tok::r_square); in DiagnoseProhibitedCXX11Attribute() 1861 assert(Tok.is(tok::r_square) && "isCXX11AttributeSpecifier lied"); in DiagnoseProhibitedCXX11Attribute() 2181 case tok::r_square: in MightBeDeclarator() 2224 SkipUntil(tok::r_square); in SkipMalformedDecl() 7245 NextToken().isOneOf(tok::comma, tok::r_square, tok::kw_alignas, in ParseDecompositionDeclarator() 7247 !(Tok.is(tok::r_square) && in ParseDecompositionDeclarator() 7254 while (Tok.isNot(tok::r_square)) { in ParseDecompositionDeclarator() 7267 SkipUntil(tok::r_square, tok::comma, tok::identifier, in ParseDecompositionDeclarator() 7299 if (Tok.isNot(tok::r_square)) in ParseDecompositionDeclarator() 8107 if (Tok.getKind() == tok::r_square) { in ParseBracketDeclarator() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Format/ |
H A D | TokenAnnotator.cpp | 74 return Left->Previous && Left->Previous->is(tok::r_square) && in isLambdaParameterList() 102 while (AttrTok && !AttrTok->startsSequence(tok::r_square, tok::r_square)) { in isCppAttribute() 115 return AttrTok && AttrTok->startsSequence(tok::r_square, tok::r_square); in isCppAttribute() 241 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace)) in parseAngle() 560 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens() 630 if (Tok.Previous && Tok.Previous->is(tok::r_square)) { in isCSharpAttributeSpecifier() 641 if (AttrTok->is(tok::r_square)) in isCSharpAttributeSpecifier() 645 while (AttrTok && AttrTok->isNot(tok::r_square)) in isCSharpAttributeSpecifier() 707 !CurrentToken->isOneOf(tok::l_brace, tok::r_square) && in parseSquare() 739 } else if (CurrentToken->is(tok::r_square) && Parent && in parseSquare() [all …]
|
H A D | UnwrappedLineParser.cpp | 321 case tok::r_square: in parseCSharpAttribute() 551 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square); in calculateBraceTypes() 583 tok::r_paren, tok::r_square, tok::ellipsis); in calculateBraceTypes() 1410 Previous->isOneOf(tok::r_square, tok::r_paren, tok::plusplus, in readTokenWithJavaScriptASI() 2266 if (FormatTok->Previous->is(tok::r_square)) in tryToParseLambda() 2375 if (FormatTok->is(tok::r_square)) { in tryToParseLambdaIntroducer() 2671 case tok::r_square: in parseSquare() 3394 case tok::r_square: in isCOperatorFollowingVar() 3907 if (Tok->is(tok::r_square)) in tryToParseSimpleAttribute() 3914 if (Tok->isNot(tok::r_square)) in tryToParseSimpleAttribute()
|
H A D | ContinuationIndenter.cpp | 1263 if ((Current.isOneOf(tok::r_brace, tok::r_square) || in getNewLineColumn() 1975 (Current.isOneOf(tok::r_paren, tok::r_square, TT_TemplateString) || in moveStatePastScopeCloser() 2010 if (Current.is(tok::r_square)) { in moveStatePastScopeCloser()
|
H A D | FormatToken.h | 721 return isOneOf(tok::r_paren, tok::r_brace, tok::r_square, in closesScope()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/ |
H A D | CPlusPlusNameParser.cpp | 278 else if (ConsumeBrackets(tok::l_square, tok::r_square)) in ConsumeTemplateArgs() 321 if (!ConsumeToken(tok::r_square)) in ConsumeAbiTag() 448 if (!ConsumeBrackets(tok::l_square, tok::r_square)) in ConsumeOperator() 471 if (ConsumeBrackets(tok::l_square, tok::r_square)) in ConsumeOperator()
|
/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | TGLexer.h | 41 r_square, // ] enumerator
|
H A D | TGLexer.cpp | 172 case ']': return tgtok::r_square; in LexToken()
|
H A D | TGParser.cpp | 941 } while (Lex.getCode() != tgtok::r_square); in ParseSliceElements() 2773 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue() 2778 if (!consume(tgtok::r_square)) { in ParseSimpleValue() 2960 if (!consume(tgtok::r_square)) { in ParseValue() 3148 if (Lex.getCode() == tgtok::r_square) in ParseValueList()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/ClangCommon/ |
H A D | ClangHighlighter.cpp | 79 case tok::r_square: in determineClangStyle()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | AnalysisBasedWarnings.cpp | 1253 tok::r_square, tok::r_square in getFallthroughAttrSpelling() 1259 tok::r_square, tok::r_square in getFallthroughAttrSpelling() 2386 tok::r_square, in getUnsafeBufferUsageAttributeTextAt() 2387 tok::r_square}; in getUnsafeBufferUsageAttributeTextAt()
|
/freebsd/contrib/llvm-project/clang/include/clang/Parse/ |
H A D | RAIIObjectsForParser.h | 456 Close = tok::r_square;
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | Preprocessor.cpp | 899 case tok::r_paren: case tok::r_square: in Lex() 1104 case tok::r_paren: case tok::r_square: case tok::r_brace: in CollectPpImportSuffix()
|
H A D | DependencyDirectivesScanner.cpp | 983 tok::r_square); in printDependencyDirectivesAsSource()
|
H A D | PPDirectives.cpp | 3747 return tok::r_square; in LexEmbedParameters() 3779 case tok::r_square: { in LexEmbedParameters()
|
H A D | Lexer.cpp | 4037 Kind = tok::r_square; in LexTokenInternal() 4351 Kind = tok::r_square; // ':>' -> ']' in LexTokenInternal()
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | TokenKinds.def | 200 PUNCTUATOR(r_square, "]")
|