Home
last modified time | relevance | path

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

12

/external/clang/lib/Parse/
DParseInit.cpp44 case tok::r_square: in MayBeDesignationStart()
227 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator()
265 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator()
277 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator()
307 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator()
317 Tok.isNot(tok::r_square)) { in ParseInitializerWithPotentialDesignator()
333 SkipUntil(tok::r_square, StopAtSemi); in ParseInitializerWithPotentialDesignator()
DParseTentative.cpp187 if (!SkipUntil(tok::r_square)) in TryConsumeDeclarationSpecifier()
596 bool IsAttribute = SkipUntil(tok::r_square); in isCXX11AttributeSpecifier()
597 IsAttribute &= Tok.is(tok::r_square); in isCXX11AttributeSpecifier()
617 bool IsAttribute = Tok.is(tok::r_square); in isCXX11AttributeSpecifier()
636 while (Tok.isNot(tok::r_square)) { in isCXX11AttributeSpecifier()
677 if (Tok.is(tok::r_square)) { in isCXX11AttributeSpecifier()
679 IsAttribute = Tok.is(tok::r_square); in isCXX11AttributeSpecifier()
739 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in TryParseOperatorId()
753 if (NextToken().is(tok::r_square)) { in TryParseOperatorId()
1890 if (!SkipUntil(tok::r_square, StopAtSemi)) in TryParseBracketDeclarator()
DParseObjc.cpp3001 if (AfterNext.isOneOf(tok::colon, tok::r_square)) { in isStartOfObjCClassMessageMissingOpenBracket()
3049 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpression()
3076 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpression()
3090 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpression()
3109 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpression()
3194 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpressionBody()
3230 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpressionBody()
3276 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpressionBody()
3289 SkipUntil(tok::r_square, StopAtSemi); in ParseObjCMessageExpressionBody()
3293 if (Tok.isNot(tok::r_square)) { in ParseObjCMessageExpressionBody()
[all …]
DParseCXXInlineMethods.cpp703 ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil()
723 case tok::r_square: in ConsumeAndStoreUntil()
1163 ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreInitializer()
1186 case tok::r_square: in ConsumeAndStoreInitializer()
DParseExprCXX.cpp723 SkipUntil(tok::r_square, StopAtSemi); in ParseLambdaExpression()
748 if (Next.is(tok::r_square) || // [] in TryParseLambdaExpression()
751 (After.is(tok::r_square) || in TryParseLambdaExpression()
754 After.is(tok::r_square))) { in TryParseLambdaExpression()
800 (NextToken().is(tok::comma) || NextToken().is(tok::r_square))) { in ParseLambdaIntroducer()
810 while (Tok.isNot(tok::r_square)) { in ParseLambdaIntroducer()
1618 case tok::r_square: in ParseThrowExpression()
2834 SkipUntil(tok::r_square, StopAtSemi); in ParseDirectNewDeclarator()
2902 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in ParseCXXDeleteExpression()
DParser.cpp186 if ((Tok.is(tok::r_paren) || Tok.is(tok::r_square)) && in ExpectAndConsumeSemi()
313 SkipUntil(tok::r_square, StopAtCodeCompletion); in SkipUntil()
315 SkipUntil(tok::r_square); in SkipUntil()
336 case tok::r_square: in SkipUntil()
2113 P.Tok.isNot(tok::r_square) && in diagnoseMissingClose()
DParseDeclCXX.cpp1519 if (!SkipUntil(tok::r_square, StopAtSemi)) in ParseClassSpecifier()
3785 SkipUntil(tok::r_square, tok::colon, StopBeforeMatch); in ParseCXX11AttributeSpecifier()
3793 while (Tok.isNot(tok::r_square)) { in ParseCXX11AttributeSpecifier()
3814 SkipUntil(tok::r_square, tok::comma, StopAtSemi | StopBeforeMatch); in ParseCXX11AttributeSpecifier()
3853 if (ExpectAndConsume(tok::r_square)) in ParseCXX11AttributeSpecifier()
3854 SkipUntil(tok::r_square); in ParseCXX11AttributeSpecifier()
3857 if (ExpectAndConsume(tok::r_square)) in ParseCXX11AttributeSpecifier()
3858 SkipUntil(tok::r_square); in ParseCXX11AttributeSpecifier()
3933 SkipUntil(tok::r_square, StopAtSemi | StopBeforeMatch); in ParseMicrosoftAttributes()
DParseExpr.cpp910 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) || in ParseCastExpression()
927 Next.is(tok::colon) || Next.is(tok::r_square)) in ParseCastExpression()
1423 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) { in ParsePostfixExpressionSuffix()
1469 if (Tok.isNot(tok::r_square)) in ParsePostfixExpressionSuffix()
1479 Tok.is(tok::r_square)) { in ParsePostfixExpressionSuffix()
2318 (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) { in ParseParenExpression()
DRAIIObjectsForParser.h403 Close = tok::r_square;
DParseDecl.cpp1376 SkipUntil(tok::r_square); in DiagnoseProhibitedCXX11Attribute()
1377 assert(Tok.is(tok::r_square) && "isCXX11AttributeSpecifier lied"); in DiagnoseProhibitedCXX11Attribute()
1622 case tok::r_square: in MightBeDeclarator()
1665 SkipUntil(tok::r_square); in SkipMalformedDecl()
6058 if (Tok.getKind() == tok::r_square) { in ParseBracketDeclarator()
6070 GetLookAheadToken(1).is(tok::r_square)) { in ParseBracketDeclarator()
6113 if (Tok.is(tok::star) && GetLookAheadToken(1).is(tok::r_square)) { in ParseBracketDeclarator()
6121 } else if (Tok.isNot(tok::r_square)) { in ParseBracketDeclarator()
6148 SkipUntil(tok::r_square, StopAtSemi); in ParseBracketDeclarator()
/external/clang/lib/Format/
DTokenAnnotator.cpp91 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace) || in parseAngle()
158 } else if (Left->Previous && Left->Previous->is(tok::r_square) && in parseParens()
267 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens()
347 if (CurrentToken->is(tok::r_square)) { in parseSquare()
418 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square)) in parseBrace()
603 case tok::r_square: in consumeToken()
934 if (Previous->isOneOf(tok::r_square, tok::r_paren)) { in modifyContext()
1174 if (LeftOfParens->isOneOf(tok::at, tok::r_square, TT_OverloadedOperator, in rParenEndsCast()
1275 PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::kw_true, in determineStarAmpUsage()
1328 if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier)) in determineIncrementUsage()
[all …]
DUnwrappedLineParser.cpp350 ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square); in calculateBraceTypes()
369 tok::r_paren, tok::r_square, tok::l_brace, in calculateBraceTypes()
738 Previous->isOneOf(tok::r_square, tok::r_paren, in readTokenWithJavaScriptASI()
1175 if (FormatTok->is(tok::r_square)) { in tryToParseLambdaIntroducer()
1184 if (FormatTok->is(tok::r_square)) { in tryToParseLambdaIntroducer()
1193 } else if (FormatTok->is(tok::r_square)) { in tryToParseLambdaIntroducer()
1207 } else if (FormatTok->is(tok::r_square)) { in tryToParseLambdaIntroducer()
1394 case tok::r_square: in parseSquare()
DContinuationIndenter.cpp619 if (Current.isOneOf(tok::r_brace, tok::r_square) && State.Stack.size() > 1) { in getNewLineColumn()
1021 (Current.isOneOf(tok::r_paren, tok::r_square) || in moveStatePastScopeCloser()
1026 if (Current.is(tok::r_square)) { in moveStatePastScopeCloser()
DFormatToken.h342 return isOneOf(tok::r_paren, tok::r_brace, tok::r_square, in closesScope()
DWhitespaceManager.cpp259 Changes[i].Kind == tok::r_square) { in AlignTokens()
/external/swiftshader/third_party/LLVM/lib/TableGen/
DTGLexer.h35 l_square, r_square, // [ ] enumerator
DTGLexer.cpp103 case ']': return tgtok::r_square; in LexToken()
DTGParser.cpp1165 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1170 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1351 if (Lex.getCode() != tgtok::r_square) { in ParseValue()
/external/llvm/lib/TableGen/
DTGLexer.h36 l_square, r_square, // [ ] enumerator
DTGLexer.cpp108 case ']': return tgtok::r_square; in LexToken()
DTGParser.cpp1319 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1324 if (Lex.getCode() != tgtok::r_square) { in ParseSimpleValue()
1510 if (Lex.getCode() != tgtok::r_square) { in ParseValue()
/external/clang/unittests/Lex/
DLexerTest.cpp274 ExpectedTokens.push_back(tok::r_square); in TEST_F()
277 ExpectedTokens.push_back(tok::r_square); in TEST_F()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp103 ASSERT_EQ(tok::r_square, toks[2].getKind()); in TEST_F()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp1079 tok::r_square, tok::r_square in getFallthroughAttrSpelling()
1085 tok::r_square, tok::r_square in getFallthroughAttrSpelling()
/external/clang/lib/Lex/
DLexer.cpp3242 Kind = tok::r_square; in LexTokenInternal()
3536 Kind = tok::r_square; // ':>' -> ']' in LexTokenInternal()

12