/external/clang/lib/Parse/ |
D | ParseInit.cpp | 35 case tok::l_square: { // designator: array-designator in MayBeDesignationStart() 165 while (Tok.is(tok::period) || Tok.is(tok::l_square)) { in ParseInitializerWithPotentialDesignator() 182 assert(Tok.is(tok::l_square) && "Unexpected token!"); in ParseInitializerWithPotentialDesignator() 203 BalancedDelimiterTracker T(*this, tok::l_square); in ParseInitializerWithPotentialDesignator()
|
D | ParseTentative.cpp | 183 while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec, in TryConsumeDeclarationSpecifier() 185 if (Tok.is(tok::l_square)) { in TryConsumeDeclarationSpecifier() 580 if (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) in isCXX11AttributeSpecifier() 739 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in TryParseOperatorId() 752 case tok::l_square: in TryParseOperatorId() 937 } else if (Tok.is(tok::l_square)) { in TryParseDeclarator() 967 case tok::l_square: in isExpressionOrTypeSpecifierSimple() 1679 tok::kw_throw, tok::kw_noexcept, tok::l_square, in isCXXFunctionDeclarator()
|
D | ParseExprCXX.cpp | 83 if (!Next.is(tok::l_square) || Next.getLength() != 2) in CheckForTemplateAndDigraph() 739 && Tok.is(tok::l_square) in TryParseLambdaExpression() 790 assert(Tok.is(tok::l_square) && "Lambda expressions begin with '['."); in ParseLambdaIntroducer() 791 BalancedDelimiterTracker T(*this, tok::l_square); in ParseLambdaIntroducer() 1232 (Tok.is(tok::l_square) && NextToken().is(tok::l_square))) { in ParseLambdaExpressionAfterIntroducer() 1240 case tok::l_square: TokKind = 2; break; in ParseLambdaExpressionAfterIntroducer() 1352 if (Tok.is(tok::l_square) && Tok.getLength() == 2) { in ParseCXXCasts() 2251 if (Tok.is(tok::l_square) && in ParseUnqualifiedIdOperator() 2252 (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square))) { in ParseUnqualifiedIdOperator() 2254 BalancedDelimiterTracker T(*this, tok::l_square); in ParseUnqualifiedIdOperator() [all …]
|
D | RAIIObjectsForParser.h | 374 case tok::l_square: return P.BracketCount; in getDepth() 402 case tok::l_square:
|
D | ParseStmtAsm.cpp | 815 if (!isTokenStringLiteral() && Tok.isNot(tok::l_square)) in ParseAsmOperandsOpt() 820 if (Tok.is(tok::l_square)) { in ParseAsmOperandsOpt() 821 BalancedDelimiterTracker T(*this, tok::l_square); in ParseAsmOperandsOpt()
|
D | ParseDecl.cpp | 1361 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square)); in DiagnoseProhibitedCXX11Attribute() 1392 assert((Tok.is(tok::l_square) && NextToken().is(tok::l_square)) || in DiagnoseMisplacedCXX11Attribute() 1599 case tok::l_square: // Might be an attribute on an unnamed bit-field. in MightBeDeclarator() 1601 NextToken().is(tok::l_square); in MightBeDeclarator() 1618 case tok::l_square: in MightBeDeclarator() 1663 case tok::l_square: in SkipMalformedDecl() 2233 return T.isOneOf(tok::l_square, tok::l_paren, tok::r_paren, tok::semi, in isValidAfterIdentifierInDeclarator() 2401 case tok::l_square: in ParseImplicitInt() 2730 case tok::l_square: in ParseDeclarationSpecifiers() 4730 case tok::l_square: in isConstructorDeclarator() [all …]
|
D | ParseDeclCXX.cpp | 1098 case tok::l_square: // void f(struct f [ 3]) in isValidAfterTypeSpecifier() 1506 } else if (isCXX11FinalKeyword() && (NextToken().is(tok::l_square) || in ParseClassSpecifier() 1517 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) { in ParseClassSpecifier() 3766 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square) in ParseCXX11AttributeSpecifier() 3899 if (Tok.is(tok::l_square)) { in SkipCXX11Attributes() 3900 BalancedDelimiterTracker T(*this, tok::l_square); in SkipCXX11Attributes() 3927 assert(Tok.is(tok::l_square) && "Not a Microsoft attribute list"); in ParseMicrosoftAttributes() 3931 BalancedDelimiterTracker T(*this, tok::l_square); in ParseMicrosoftAttributes() 3937 } while (Tok.is(tok::l_square)); in ParseMicrosoftAttributes()
|
D | ParseExpr.cpp | 1338 case tok::l_square: in ParseCastExpression() 1433 case tok::l_square: { // postfix-expression: p-e '[' expression ']' in ParsePostfixExpressionSuffix() 1451 BalancedDelimiterTracker T(*this, tok::l_square); in ParsePostfixExpressionSuffix() 2020 } else if (Tok.is(tok::l_square)) { in ParseBuiltinPrimaryExpression() 2027 BalancedDelimiterTracker ST(*this, tok::l_square); in ParseBuiltinPrimaryExpression()
|
D | ParseCXXInlineMethods.cpp | 699 case tok::l_square: in ConsumeAndStoreUntil() 1159 case tok::l_square: in ConsumeAndStoreInitializer()
|
D | ParseStmt.cpp | 129 WantTypeSpecifiers = nextTok.isOneOf(tok::l_paren, tok::less, tok::l_square, in StatementFilterCCC() 1481 if (Next.isOneOf(tok::l_square, tok::kw_alignas)) { in isForRangeIdentifier()
|
/external/clang/lib/Format/ |
D | TokenAnnotator.cpp | 225 (CurrentToken->Next->is(tok::l_square) && Line.MustBeDeclaration))) in parseParens() 313 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare() 331 tok::comma, tok::l_paren, tok::l_square, in parseSquare() 342 ScopedContextCreator ContextCreator(*this, tok::l_square, BindingIncrease); in parseSquare() 498 Contexts.back().ContextKind == tok::l_square || // array type in consumeToken() 584 case tok::l_square: in consumeToken() 1020 (!Current.Previous || Current.Previous->isNot(tok::l_square))) { in determineTokenType() 1254 if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace, in determineStarAmpUsage() 1261 if (NextToken->is(tok::l_square) && NextToken->isNot(TT_LambdaLSquare)) in determineStarAmpUsage() 1310 if (PrevToken->isOneOf(tok::equal, tok::l_paren, tok::comma, tok::l_square, in determinePlusMinusCaretUsage() [all …]
|
D | UnwrappedLineParser.cpp | 370 tok::l_square, tok::l_paren, tok::ellipsis) || in calculateBraceTypes() 644 Tok.isNot(tok::l_square) && in tokenCanStartNewLine() 1104 case tok::l_square: in parseStructuralElement() 1130 assert(FormatTok->is(tok::l_square)); in tryToParseLambda() 1295 case tok::l_square: in parseBracedList() 1358 case tok::l_square: in parseParens() 1386 assert(FormatTok->Tok.is(tok::l_square) && "'[' expected."); in parseSquare() 1400 case tok::l_square: in parseSquare()
|
D | FormatToken.h | 337 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square, in opensScope()
|
D | WhitespaceManager.cpp | 263 Changes[i].Kind == tok::l_square) { in AlignTokens()
|
D | FormatTokenLexer.cpp | 145 tok::r_brace, tok::l_square, tok::semi, tok::exclaim, in precedesOperand()
|
D | ContinuationIndenter.cpp | 356 Previous.isOneOf(tok::l_paren, TT_TemplateOpener, tok::l_square) && in addTokenOnCurrentLine() 1029 if (NextNonComment && NextNonComment->isNot(tok::l_square)) in moveStatePastScopeCloser()
|
/external/swiftshader/third_party/LLVM/lib/TableGen/ |
D | TGLexer.h | 35 l_square, r_square, // [ ] enumerator
|
D | TGLexer.cpp | 386 return tgtok::l_square; in LexBracket()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.h | 36 l_square, r_square, // [ ] enumerator
|
D | TGLexer.cpp | 436 return tgtok::l_square; in LexBracket()
|
D | TGParser.cpp | 1302 case tgtok::l_square: { // Value ::= '[' ValueList ']' in ParseSimpleValue() 1497 case tgtok::l_square: { in ParseValue() 1765 case tgtok::l_square: { // '[' ValueList ']' in ParseForeachDeclaration()
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 333 return Tok.getKind() == tok::l_square || Tok.getKind() == tok::r_square; in isTokenBracket() 397 if (Tok.getKind() == tok::l_square) in ConsumeBracket() 1441 return (K == tok::l_square || K == tok::l_paren || in isPostfixExpressionSuffixStart() 2082 assert(Tok.is(tok::l_square)); in CheckProhibitedCXX11Attribute() 2083 if (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square)) in CheckProhibitedCXX11Attribute() 2092 if ((Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) && in CheckMisplacedCXX11Attribute() 2202 if (getLangOpts().MicrosoftExt && Tok.is(tok::l_square))
|
/external/clang/unittests/Lex/ |
D | LexerTest.cpp | 272 ExpectedTokens.push_back(tok::l_square); in TEST_F() 275 ExpectedTokens.push_back(tok::l_square); in TEST_F()
|
/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 101 ASSERT_EQ(tok::l_square, toks[0].getKind()); in TEST_F()
|
/external/clang/lib/Sema/ |
D | AnalysisBasedWarnings.cpp | 1077 tok::l_square, tok::l_square, in getFallthroughAttrSpelling() 1083 tok::l_square, tok::l_square, PP.getIdentifierInfo("clang"), in getFallthroughAttrSpelling()
|