Home
last modified time | relevance | path

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

/external/clang/lib/Parse/
DParseInit.cpp44 case tok::r_square: in MayBeDesignationStart()
229 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator()
270 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator()
297 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator()
307 Tok.isNot(tok::r_square)) { in ParseInitializerWithPotentialDesignator()
325 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator()
DParseTentative.cpp186 if (!SkipUntil(tok::r_square)) in TryConsumeDeclarationSpecifier()
521 bool IsAttribute = SkipUntil(tok::r_square); in isCXX11AttributeSpecifier()
522 IsAttribute &= Tok.is(tok::r_square); in isCXX11AttributeSpecifier()
544 bool IsAttribute = Tok.is(tok::r_square); in isCXX11AttributeSpecifier()
565 while (Tok.isNot(tok::r_square)) { in isCXX11AttributeSpecifier()
607 if (Tok.is(tok::r_square)) { in isCXX11AttributeSpecifier()
609 IsAttribute = Tok.is(tok::r_square); in isCXX11AttributeSpecifier()
672 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in TryParseOperatorId()
686 if (NextToken().is(tok::r_square)) { in TryParseOperatorId()
1824 if (!SkipUntil(tok::r_square, StopAtSemi)) in TryParseBracketDeclarator()
DParseObjc.cpp2267 if (AfterNext.is(tok::colon) || AfterNext.is(tok::r_square)) { in isStartOfObjCClassMessageMissingOpenBracket()
2315 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpression()
2343 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpression()
2361 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpression()
2446 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpressionBody()
2482 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpressionBody()
2528 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpressionBody()
2541 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpressionBody()
2545 if (Tok.isNot(tok::r_square)) { in ParseObjCMessageExpressionBody()
2547 << (Tok.is(tok::identifier) ? tok::colon : tok::r_square); in ParseObjCMessageExpressionBody()
[all …]
DParseExprCXX.cpp723 SkipUntil(tok::r_square, StopAtSemi); in ParseLambdaExpression()
745 if (Next.is(tok::r_square) || // [] in TryParseLambdaExpression()
748 (After.is(tok::r_square) || in TryParseLambdaExpression()
751 After.is(tok::r_square))) { in TryParseLambdaExpression()
797 (NextToken().is(tok::comma) || NextToken().is(tok::r_square))) { in ParseLambdaIntroducer()
807 while (Tok.isNot(tok::r_square)) { in ParseLambdaIntroducer()
1550 case tok::r_square: in ParseThrowExpression()
2750 SkipUntil(tok::r_square, StopAtSemi); in ParseDirectNewDeclarator()
2818 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in ParseCXXDeleteExpression()
DParseCXXInlineMethods.cpp697 ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil()
717 case tok::r_square: in ConsumeAndStoreUntil()
1157 ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreInitializer()
1180 case tok::r_square: in ConsumeAndStoreInitializer()
DParser.cpp166 if ((Tok.is(tok::r_paren) || Tok.is(tok::r_square)) && in ExpectAndConsumeSemi()
292 SkipUntil(tok::r_square, StopAtCodeCompletion); in SkipUntil()
294 SkipUntil(tok::r_square); in SkipUntil()
315 case tok::r_square: in SkipUntil()
1951 P.Tok.isNot(tok::r_square) && in diagnoseMissingClose()
DParseDeclCXX.cpp1470 if (!SkipUntil(tok::r_square, StopAtSemi)) in ParseClassSpecifier()
3668 while (Tok.isNot(tok::r_square)) { in ParseCXX11AttributeSpecifier()
3689 SkipUntil(tok::r_square, tok::comma, StopAtSemi | StopBeforeMatch); in ParseCXX11AttributeSpecifier()
3718 if (ExpectAndConsume(tok::r_square)) in ParseCXX11AttributeSpecifier()
3719 SkipUntil(tok::r_square); in ParseCXX11AttributeSpecifier()
3722 if (ExpectAndConsume(tok::r_square)) in ParseCXX11AttributeSpecifier()
3723 SkipUntil(tok::r_square); in ParseCXX11AttributeSpecifier()
3797 SkipUntil(tok::r_square, StopAtSemi | StopBeforeMatch); in ParseMicrosoftAttributes()
3799 ExpectAndConsume(tok::r_square); in ParseMicrosoftAttributes()
DRAIIObjectsForParser.h397 Close = tok::r_square;
DParseExpr.cpp870 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) || in ParseCastExpression()
887 Next.is(tok::colon) || Next.is(tok::r_square)) in ParseCastExpression()
1340 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) { in ParsePostfixExpressionSuffix()
1378 if (!LHS.isInvalid() && !Idx.isInvalid() && Tok.is(tok::r_square)) { in ParsePostfixExpressionSuffix()
2184 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) { in ParseParenExpression()
DParseDecl.cpp1317 SkipUntil(tok::r_square); in DiagnoseProhibitedCXX11Attribute()
1318 assert(Tok.is(tok::r_square) && "isCXX11AttributeSpecifier lied"); in DiagnoseProhibitedCXX11Attribute()
1520 case tok::r_square: in MightBeDeclarator()
1563 SkipUntil(tok::r_square); in SkipMalformedDecl()
5753 if (Tok.getKind() == tok::r_square) { in ParseBracketDeclarator()
5765 GetLookAheadToken(1).is(tok::r_square)) { in ParseBracketDeclarator()
5805 if (Tok.is(tok::star) && GetLookAheadToken(1).is(tok::r_square)) { in ParseBracketDeclarator()
5813 } else if (Tok.isNot(tok::r_square)) { in ParseBracketDeclarator()
5840 SkipUntil(tok::r_square, StopAtSemi); in ParseBracketDeclarator()
/external/clang/lib/Format/
DTokenAnnotator.cpp71 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace, in parseAngle()
125 } else if (Left->Previous && Left->Previous->is(tok::r_square) && in parseParens()
213 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens()
272 if (CurrentToken->is(tok::r_square)) { in parseSquare()
344 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace()
505 case tok::r_square: in consumeToken()
777 if (Previous->isOneOf(tok::r_square, tok::r_paren)) { in modifyContext()
967 if (LeftOfParens && LeftOfParens->is(tok::r_square) && in rParenEndsCast()
1068 PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::kw_true, in determineStarAmpUsage()
1121 if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier)) in determineIncrementUsage()
[all …]
DUnwrappedLineParser.cpp340 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square); in calculateBraceTypes()
357 tok::r_paren, tok::r_square, tok::l_brace, in calculateBraceTypes()
941 if (FormatTok->is(tok::r_square)) { in tryToParseLambdaIntroducer()
950 if (FormatTok->is(tok::r_square)) { in tryToParseLambdaIntroducer()
959 } else if (FormatTok->is(tok::r_square)) { in tryToParseLambdaIntroducer()
973 } else if (FormatTok->is(tok::r_square)) { in tryToParseLambdaIntroducer()
1125 case tok::r_square: in parseSquare()
DFormatToken.h318 return isOneOf(tok::r_paren, tok::r_brace, tok::r_square, in closesScope()
DContinuationIndenter.cpp532 if (Current.isOneOf(tok::r_brace, tok::r_square) && State.Stack.size() > 1) { in getNewLineColumn()
870 (Current.isOneOf(tok::r_paren, tok::r_square) || in moveStatePastScopeCloser()
875 if (Current.is(tok::r_square)) { in moveStatePastScopeCloser()
/external/llvm/lib/TableGen/
DTGLexer.h36 l_square, r_square, // [ ] enumerator
DTGLexer.cpp108 case ']': return tgtok::r_square; in LexToken()
DTGParser.cpp1356 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1361 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1549 if (Lex.getCode() != tgtok::r_square) { in ParseValue()
/external/clang/unittests/Lex/
DLexerTest.cpp270 ExpectedTokens.push_back(tok::r_square); in TEST_F()
273 ExpectedTokens.push_back(tok::r_square); in TEST_F()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp104 ASSERT_EQ(tok::r_square, toks[2].getKind()); in TEST_F()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp1125 tok::r_square, tok::r_square in DiagnoseSwitchLabelsFallthrough()
/external/clang/lib/Lex/
DLexer.cpp3207 Kind = tok::r_square; in LexTokenInternal()
3498 Kind = tok::r_square; // ':>' -> ']' in LexTokenInternal()
DModuleMap.cpp1142 case tok::r_square: in consumeToken()
/external/clang/include/clang/Basic/
DTokenKinds.def154 PUNCTUATOR(r_square, "]")
/external/clang/include/clang/Parse/
DParser.h317 return Tok.getKind() == tok::l_square || Tok.getKind() == tok::r_square; in isTokenBracket()