|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/Parse/Parser.h 515 return Tok.isOneOf(tok::l_square, tok::r_square);
571 if (Tok.getKind() == tok::l_square)
1681 return (K == tok::l_square || K == tok::l_paren ||
2397 assert(Tok.is(tok::l_square));
2398 if (!standardAttributesAllowed() || NextToken().isNot(tok::l_square))
2408 if ((Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) &&
2408 if ((Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) &&
2535 if (getLangOpts().MicrosoftExt && Tok.is(tok::l_square))
tools/clang/include/clang/Parse/RAIIObjectsForParser.h 375 case tok::l_square: return P.BracketCount;
401 case tok::l_square:
tools/clang/lib/Format/ContinuationIndenter.cpp 323 if (Previous.is(tok::l_square) && Previous.is(TT_ObjCMethodExpr))
612 (Previous.isOneOf(tok::l_paren, TT_TemplateOpener, tok::l_square) ||
1468 if (NextNonComment && NextNonComment->isNot(tok::l_square))
tools/clang/lib/Format/Format.cpp 1776 FormatTok->isOneOf(tok::numeric_constant, tok::l_square,
tools/clang/lib/Format/FormatToken.h 390 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square,
518 if (!Style.isCpp() || isNot(tok::l_square))
tools/clang/lib/Format/FormatTokenLexer.cpp 330 tok::r_brace, tok::l_square, tok::semi, tok::exclaim,
tools/clang/lib/Format/TokenAnnotator.cpp 284 (CurrentToken->Next->is(tok::l_square) && Line.MustBeDeclaration)))
395 tok::kw_class, tok::kw_static, tok::l_square,
409 if (!Style.isCpp() || !Tok.startsSequence(tok::l_square, tok::l_square))
409 if (!Style.isCpp() || !Tok.startsSequence(tok::l_square, tok::l_square))
475 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren,
533 if (!Left->endsSequence(tok::l_square, tok::numeric_constant,
535 !Left->endsSequence(tok::l_square, tok::numeric_constant,
537 !Left->endsSequence(tok::l_square, tok::colon, TT_SelectorName)) {
543 tok::comma, tok::l_paren, tok::l_square,
554 ScopedContextCreator ContextCreator(*this, tok::l_square, BindingIncrease);
770 Contexts.back().ContextKind == tok::l_square || // array type
894 case tok::l_square:
1423 (!Current.Previous || Current.Previous->isNot(tok::l_square)) &&
1694 if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace,
1702 if (NextToken->is(tok::l_square) && NextToken->isNot(TT_LambdaLSquare))
1758 if (PrevToken->isOneOf(tok::equal, tok::l_paren, tok::comma, tok::l_square,
2090 if (Next->Next && Next->Next->is(tok::l_square) && Next->Next->Next &&
2344 if (Right.is(tok::l_square)) {
2569 if (Left.is(tok::l_square) && Right.is(tok::amp))
2605 tok::l_square));
2614 LSquareTok.endsSequence(tok::l_square, tok::colon,
2617 if (Left.is(tok::l_square))
2633 if (Right.is(tok::l_square) &&
2672 return !Left.isOneOf(tok::l_paren, tok::l_square, tok::at) &&
2692 if (Left.is(TT_TemplateCloser) && Right.is(tok::l_square))
2783 if (Right.isOneOf(tok::l_brace, tok::l_square) &&
2819 Right.isOneOf(tok::l_square, tok::l_brace, tok::l_paren))
2836 !Right.isOneOf(tok::equal, tok::l_brace, tok::comma, tok::l_square,
2953 !(Left.isOneOf(tok::l_paren, tok::r_paren, tok::l_square,
3136 Right.is(tok::l_square))))
3287 Right.isOneOf(tok::l_square, tok::l_paren))
3480 (Right.is(tok::l_square) && Right.is(TT_AttributeSquare)))
3523 if ((Left.is(TT_AttributeSquare) && Right.is(tok::l_square)) ||
3530 tok::colon, tok::l_square, tok::at) ||
tools/clang/lib/Format/UnwrappedLineParser.cpp 469 if (NextTok->is(tok::l_square)) {
474 ProbablyBracedList = NextTok->isNot(tok::l_square);
861 Tok.isNot(tok::l_square) &&
1400 case tok::l_square:
1418 assert(FormatTok->is(tok::l_square));
1512 tok::kw_delete, tok::l_square) ||
1519 if (FormatTok->is(tok::l_square)) {
1620 case tok::l_square:
1690 case tok::l_square:
1727 assert(FormatTok->Tok.is(tok::l_square) && "'[' expected.");
1742 case tok::l_square:
1885 tok::l_square)) {
1886 if (FormatTok->is(tok::l_square))
tools/clang/lib/Lex/Lexer.cpp 3486 Kind = tok::l_square;
3732 Kind = tok::l_square;
tools/clang/lib/Lex/ModuleMap.cpp 1527 case tok::l_square:
tools/clang/lib/Lex/Preprocessor.cpp 920 case tok::l_paren: case tok::l_square: case tok::l_brace:
1073 case tok::l_paren: case tok::l_square: case tok::l_brace:
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp 690 case tok::l_square:
1166 case tok::l_square:
tools/clang/lib/Parse/ParseDecl.cpp 1631 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square));
1631 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square));
1662 assert((Tok.is(tok::l_square) && NextToken().is(tok::l_square)) ||
1662 assert((Tok.is(tok::l_square) && NextToken().is(tok::l_square)) ||
1871 case tok::l_square: // Might be an attribute on an unnamed bit-field.
1873 getLangOpts().CPlusPlus11 && NextToken().is(tok::l_square);
1891 case tok::l_square:
1937 case tok::l_square:
2544 return T.isOneOf(tok::l_square, tok::l_paren, tok::r_paren, tok::semi,
2721 case tok::l_square:
3083 case tok::l_square:
5232 case tok::l_square:
5741 if (Tok.is(tok::l_square) && !D.mayOmitIdentifier() &&
5949 if (Tok.is(tok::l_square))
6028 } else if (Tok.is(tok::l_square)) {
6037 assert(Tok.is(tok::l_square));
6049 BalancedDelimiterTracker T(*this, tok::l_square);
6740 BalancedDelimiterTracker T(*this, tok::l_square);
6852 assert(Tok.is(tok::l_square) && "Missing opening bracket");
6858 while (Tok.is(tok::l_square)) {
tools/clang/lib/Parse/ParseDeclCXX.cpp 1274 case tok::l_square: // void f(struct f [ 3])
1704 } else if (isCXX11FinalKeyword() && (NextToken().is(tok::l_square) ||
1715 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) {
1715 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) {
4051 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square) &&
4051 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square) &&
4185 if (Tok.is(tok::l_square)) {
4186 BalancedDelimiterTracker T(*this, tok::l_square);
4298 assert(Tok.is(tok::l_square) && "Not a Microsoft attribute list");
4302 BalancedDelimiterTracker T(*this, tok::l_square);
4319 } while (Tok.is(tok::l_square));
tools/clang/lib/Parse/ParseExpr.cpp 1459 case tok::l_square:
1559 case tok::l_square: { // postfix-expression: p-e '[' expression ']'
1577 BalancedDelimiterTracker T(*this, tok::l_square);
2184 } else if (Tok.is(tok::l_square)) {
2191 BalancedDelimiterTracker ST(*this, tok::l_square);
tools/clang/lib/Parse/ParseExprCXX.cpp 82 if (!Next.is(tok::l_square) || Next.getLength() != 2)
744 && Tok.is(tok::l_square)
821 assert(Tok.is(tok::l_square) && "Lambda expressions begin with '['.");
822 BalancedDelimiterTracker T(*this, tok::l_square);
1387 (Tok.is(tok::l_square) && NextToken().is(tok::l_square))) {
1387 (Tok.is(tok::l_square) && NextToken().is(tok::l_square))) {
1395 case tok::l_square: TokKind = 2; break;
1505 if (Tok.is(tok::l_square) && Tok.getLength() == 2) {
2459 if (Tok.is(tok::l_square) &&
2460 (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square))) {
2462 BalancedDelimiterTracker T(*this, tok::l_square);
2499 case tok::l_square: {
2501 BalancedDelimiterTracker T(*this, tok::l_square);
3075 while (Tok.is(tok::l_square)) {
3080 BalancedDelimiterTracker T(*this, tok::l_square);
3155 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) {
3216 BalancedDelimiterTracker T(*this, tok::l_square);
tools/clang/lib/Parse/ParseInit.cpp 33 case tok::l_square: { // designator: array-designator
191 while (Tok.is(tok::period) || Tok.is(tok::l_square)) {
208 assert(Tok.is(tok::l_square) && "Unexpected token!");
229 BalancedDelimiterTracker T(*this, tok::l_square);
tools/clang/lib/Parse/ParseObjc.cpp 2821 case tok::l_square:
2967 assert(Tok.is(tok::l_square) && getLangOpts().ObjC &&
3011 assert(Tok.is(tok::l_square) && "'[' expected");
tools/clang/lib/Parse/ParsePragma.cpp 1432 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) {
1432 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) {
tools/clang/lib/Parse/ParseStmt.cpp 122 WantTypeSpecifiers = nextTok.isOneOf(tok::l_paren, tok::less, tok::l_square,
1579 if (Next.isOneOf(tok::l_square, tok::kw_alignas)) {
tools/clang/lib/Parse/ParseStmtAsm.cpp 883 if (!isTokenStringLiteral() && Tok.isNot(tok::l_square))
888 if (Tok.is(tok::l_square)) {
889 BalancedDelimiterTracker T(*this, tok::l_square);
tools/clang/lib/Parse/ParseTentative.cpp 189 while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec,
191 if (Tok.is(tok::l_square)) {
649 if (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square))
649 if (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square))
832 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) {
845 case tok::l_square:
1030 } else if (Tok.is(tok::l_square)) {
1060 case tok::l_square:
1857 tok::kw_throw, tok::kw_noexcept, tok::l_square,
tools/clang/lib/Parse/Parser.cpp 302 case tok::l_square:
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp 1221 tok::l_square, tok::l_square,
1221 tok::l_square, tok::l_square,
1227 tok::l_square, tok::l_square, PP.getIdentifierInfo("clang"),
1227 tok::l_square, tok::l_square, PP.getIdentifierInfo("clang"),
tools/clang/lib/Sema/SemaDecl.cpp 2731 {tok::l_square, tok::l_square, S.PP.getIdentifierInfo("clang"),
2731 {tok::l_square, tok::l_square, S.PP.getIdentifierInfo("clang"),
tools/clang/lib/Sema/SemaExprCXX.cpp 3166 DeleteLoc, tok::l_square, SemaRef.getSourceManager(),
tools/clang/tools/extra/clang-tidy/bugprone/MacroParenthesesCheck.cpp 44 return T.isOneOf(tok::l_paren, tok::l_brace, tok::l_square, tok::comma,
99 Tok->isOneOf(tok::equal, tok::semi, tok::l_square, tok::l_paren) ||
123 if (Tok.isOneOf(tok::l_paren, tok::l_brace, tok::l_square)) {
177 if (Tok.isOneOf(tok::equal, tok::semi, tok::l_square, tok::l_paren))
tools/clang/tools/extra/clangd/Format.cpp 39 case tok::l_square:
tools/clang/unittests/Basic/SourceManagerTest.cpp 82 ASSERT_EQ(tok::l_square, toks[0].getKind());
tools/clang/unittests/Lex/LexerTest.cpp 267 ExpectedTokens.push_back(tok::l_square);
270 ExpectedTokens.push_back(tok::l_square);
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp 227 case tok::l_square:
228 if (!ConsumeBrackets(tok::l_square, tok::r_square))
338 if (HasMoreTokens() && Peek().is(tok::l_square)) {
340 if (!ConsumeBrackets(tok::l_square, tok::r_square))
360 case tok::l_square:
363 if (ConsumeBrackets(tok::l_square, tok::r_square))
tools/lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp 76 case tok::l_square: