/external/clang/lib/Parse/ |
D | ParseInit.cpp | 44 case tok::r_square: in MayBeDesignationStart() 89 case tok::r_square: { in MayBeDesignationStart() 247 SkipUntil(tok::r_square); in ParseInitializerWithPotentialDesignator() 288 SkipUntil(tok::r_square); in ParseInitializerWithPotentialDesignator() 315 SkipUntil(tok::r_square); in ParseInitializerWithPotentialDesignator() 325 Tok.isNot(tok::r_square)) { in ParseInitializerWithPotentialDesignator() 343 SkipUntil(tok::r_square); in ParseInitializerWithPotentialDesignator()
|
D | ParseTentative.cpp | 451 bool IsAttribute = SkipUntil(tok::r_square, false); in isCXX11AttributeSpecifier() 452 IsAttribute &= Tok.is(tok::r_square); in isCXX11AttributeSpecifier() 474 bool IsAttribute = Tok.is(tok::r_square); in isCXX11AttributeSpecifier() 495 while (Tok.isNot(tok::r_square)) { in isCXX11AttributeSpecifier() 540 if (Tok.is(tok::r_square)) { in isCXX11AttributeSpecifier() 542 IsAttribute = Tok.is(tok::r_square); in isCXX11AttributeSpecifier() 1578 if (!SkipUntil(tok::r_square)) in TryParseBracketDeclarator()
|
D | ParseObjc.cpp | 2259 if (AfterNext.is(tok::colon) || AfterNext.is(tok::r_square)) { in isStartOfObjCClassMessageMissingOpenBracket() 2307 SkipUntil(tok::r_square); in ParseObjCMessageExpression() 2335 SkipUntil(tok::r_square); in ParseObjCMessageExpression() 2353 SkipUntil(tok::r_square); in ParseObjCMessageExpression() 2439 SkipUntil(tok::r_square); in ParseObjCMessageExpressionBody() 2472 SkipUntil(tok::r_square); in ParseObjCMessageExpressionBody() 2519 SkipUntil(tok::r_square); in ParseObjCMessageExpressionBody() 2532 SkipUntil(tok::r_square); in ParseObjCMessageExpressionBody() 2536 if (Tok.isNot(tok::r_square)) { in ParseObjCMessageExpressionBody() 2544 SkipUntil(tok::r_square); in ParseObjCMessageExpressionBody() [all …]
|
D | ParseExprCXX.cpp | 608 SkipUntil(tok::r_square); in ParseLambdaExpression() 630 if (Next.is(tok::r_square) || // [] in TryParseLambdaExpression() 633 (After.is(tok::r_square) || in TryParseLambdaExpression() 636 After.is(tok::r_square))) { in TryParseLambdaExpression() 674 (NextToken().is(tok::comma) || NextToken().is(tok::r_square))) { in ParseLambdaIntroducer() 684 while (Tok.isNot(tok::r_square)) { in ParseLambdaIntroducer() 1250 case tok::r_square: in ParseThrowExpression() 2401 SkipUntil(tok::r_square); in ParseDirectNewDeclarator() 2469 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in ParseCXXDeleteExpression()
|
D | ParseDeclCXX.cpp | 1309 if (!SkipUntil(tok::r_square)) in ParseClassSpecifier() 3105 while (Tok.isNot(tok::r_square)) { in ParseCXX11AttributeSpecifier() 3130 SkipUntil(tok::r_square, tok::comma, true, true); in ParseCXX11AttributeSpecifier() 3175 if (ExpectAndConsume(tok::r_square, diag::err_expected_rsquare)) in ParseCXX11AttributeSpecifier() 3176 SkipUntil(tok::r_square, false); in ParseCXX11AttributeSpecifier() 3179 if (ExpectAndConsume(tok::r_square, diag::err_expected_rsquare)) in ParseCXX11AttributeSpecifier() 3180 SkipUntil(tok::r_square, false); in ParseCXX11AttributeSpecifier() 3217 SkipUntil(tok::r_square, true, true); in ParseMicrosoftAttributes() 3219 ExpectAndConsume(tok::r_square, diag::err_expected_rsquare); in ParseMicrosoftAttributes()
|
D | ParseCXXInlineMethods.cpp | 574 ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil() 594 case tok::r_square: in ConsumeAndStoreUntil()
|
D | ParseExpr.cpp | 798 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) || in ParseCastExpression() 815 Next.is(tok::colon) || Next.is(tok::r_square)) in ParseCastExpression() 1301 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) { in ParsePostfixExpressionSuffix() 1339 if (!LHS.isInvalid() && !Idx.isInvalid() && Tok.is(tok::r_square)) { in ParsePostfixExpressionSuffix() 2046 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) { in ParseParenExpression()
|
D | RAIIObjectsForParser.h | 396 Close = tok::r_square; in BalancedDelimiterTracker()
|
D | Parser.cpp | 191 if ((Tok.is(tok::r_paren) || Tok.is(tok::r_square)) && in ExpectAndConsumeSemi() 288 SkipUntil(tok::r_square, false, false, StopAtCodeCompletion); in SkipUntil() 306 case tok::r_square: in SkipUntil() 1906 case tok::r_square: LHSName = "["; DID = diag::err_expected_rsquare; break; in diagnoseMissingClose()
|
D | ParseDecl.cpp | 1166 SkipUntil(tok::r_square, /*StopAtSemi*/ false); in DiagnoseProhibitedCXX11Attribute() 1167 assert(Tok.is(tok::r_square) && "isCXX11AttributeSpecifier lied"); in DiagnoseProhibitedCXX11Attribute() 1364 case tok::r_square: in MightBeDeclarator() 1408 SkipUntil(tok::r_square, /*StopAtSemi*/false); in SkipMalformedDecl() 5183 if (Tok.getKind() == tok::r_square) { in ParseBracketDeclarator() 5196 GetLookAheadToken(1).is(tok::r_square)) { in ParseBracketDeclarator() 5237 if (Tok.is(tok::star) && GetLookAheadToken(1).is(tok::r_square)) { in ParseBracketDeclarator() 5245 } else if (Tok.isNot(tok::r_square)) { in ParseBracketDeclarator() 5266 SkipUntil(tok::r_square); in ParseBracketDeclarator()
|
/external/clang/lib/Format/ |
D | TokenAnnotator.cpp | 75 return Tok.isOneOf(tok::r_paren, tok::r_brace, tok::r_square) || in closesScope() 113 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace, in parseAngle() 182 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens() 220 if (CurrentToken->is(tok::r_square)) { in parseSquare() 268 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace() 383 case tok::r_square: in consumeToken() 577 if (Previous->is(tok::r_square)) in determineTokenType() 683 PrevToken->isOneOf(tok::r_paren, tok::r_square) || in determineStarAmpUsage() 720 if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier)) in determineIncrementUsage() 912 if (Left.isOneOf(tok::r_paren, tok::r_square) && Left.MatchingParen && in splitPenalty() [all …]
|
D | Format.cpp | 724 if (Current.isOneOf(tok::r_paren, tok::r_square) || in moveStateToNextToken()
|
/external/clang/unittests/Lex/ |
D | LexerTest.cpp | 104 ASSERT_EQ(tok::r_square, toks[2].getKind()); in TEST_F() 107 ASSERT_EQ(tok::r_square, toks[5].getKind()); in TEST_F()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.h | 36 l_square, r_square, // [ ] enumerator
|
D | TGLexer.cpp | 108 case ']': return tgtok::r_square; in LexToken()
|
D | TGParser.cpp | 1283 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue() 1288 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue() 1474 if (Lex.getCode() != tgtok::r_square) { in ParseValue()
|
/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 97 ASSERT_EQ(tok::r_square, toks[2].getKind()); in TEST_F()
|
/external/clang/lib/Sema/ |
D | AnalysisBasedWarnings.cpp | 918 tok::r_square, tok::r_square in DiagnoseSwitchLabelsFallthrough()
|
/external/clang/include/clang/Basic/ |
D | TokenKinds.def | 140 PUNCTUATOR(r_square, "]")
|
/external/clang/lib/Lex/ |
D | Lexer.cpp | 3023 Kind = tok::r_square; in LexTokenInternal() 3308 Kind = tok::r_square; // ':>' -> ']' in LexTokenInternal()
|
D | ModuleMap.cpp | 815 case tok::r_square: in consumeToken()
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 272 return Tok.getKind() == tok::l_square || Tok.getKind() == tok::r_square; in isTokenBracket()
|