Home
last modified time | relevance | path

Searched refs:r_square (Results 1 – 22 of 22) sorted by relevance

/external/clang/lib/Parse/
DParseInit.cpp44 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()
DParseTentative.cpp451 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()
DParseObjc.cpp2259 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 …]
DParseExprCXX.cpp608 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()
DParseDeclCXX.cpp1309 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()
DParseCXXInlineMethods.cpp574 ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil()
594 case tok::r_square: in ConsumeAndStoreUntil()
DParseExpr.cpp798 (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()
DRAIIObjectsForParser.h396 Close = tok::r_square; in BalancedDelimiterTracker()
DParser.cpp191 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()
DParseDecl.cpp1166 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/
DTokenAnnotator.cpp75 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 …]
DFormat.cpp724 if (Current.isOneOf(tok::r_paren, tok::r_square) || in moveStateToNextToken()
/external/clang/unittests/Lex/
DLexerTest.cpp104 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/
DTGLexer.h36 l_square, r_square, // [ ] enumerator
DTGLexer.cpp108 case ']': return tgtok::r_square; in LexToken()
DTGParser.cpp1283 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/
DSourceManagerTest.cpp97 ASSERT_EQ(tok::r_square, toks[2].getKind()); in TEST_F()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp918 tok::r_square, tok::r_square in DiagnoseSwitchLabelsFallthrough()
/external/clang/include/clang/Basic/
DTokenKinds.def140 PUNCTUATOR(r_square, "]")
/external/clang/lib/Lex/
DLexer.cpp3023 Kind = tok::r_square; in LexTokenInternal()
3308 Kind = tok::r_square; // ':>' -> ']' in LexTokenInternal()
DModuleMap.cpp815 case tok::r_square: in consumeToken()
/external/clang/include/clang/Parse/
DParser.h272 return Tok.getKind() == tok::l_square || Tok.getKind() == tok::r_square; in isTokenBracket()