reference, declarationdefinition
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);
tools/clang/include/clang/Parse/RAIIObjectsForParser.h
  402           Close = tok::r_square;
tools/clang/lib/Format/ContinuationIndenter.cpp
  945   if ((Current.isOneOf(tok::r_brace, tok::r_square) ||
 1435       (Current.isOneOf(tok::r_paren, tok::r_square, TT_TemplateString) ||
 1465   if (Current.is(tok::r_square)) {
tools/clang/lib/Format/FormatToken.h
  400     return isOneOf(tok::r_paren, tok::r_brace, tok::r_square,
tools/clang/lib/Format/FormatTokenLexer.cpp
  248   if (!Identifier->isOneOf(tok::r_square, tok::identifier) ||
tools/clang/lib/Format/TokenAnnotator.cpp
   54   return Left->Previous && Left->Previous->is(tok::r_square) &&
  132       if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace) ||
  329       if (CurrentToken->isOneOf(tok::r_square, tok::r_brace))
  377     if (AttrTok->is(tok::r_square))
  381     while (AttrTok && AttrTok->isNot(tok::r_square)) {
  424     while (AttrTok && !AttrTok->startsSequence(tok::r_square, tok::r_square)) {
  424     while (AttrTok && !AttrTok->startsSequence(tok::r_square, tok::r_square)) {
  436     return AttrTok && AttrTok->startsSequence(tok::r_square, tok::r_square);
  436     return AttrTok && AttrTok->startsSequence(tok::r_square, tok::r_square);
  473         !CurrentToken->isOneOf(tok::l_brace, tok::r_square) &&
  501       } else if (CurrentToken->is(tok::r_square) && Parent &&
  565       if (CurrentToken->is(tok::r_square)) {
  680         if (CurrentToken->isOneOf(tok::r_paren, tok::r_square))
  802             BeforePrevious->is(tok::r_square) ||
  931     case tok::r_square:
 1310           if (Previous->isOneOf(tok::r_square, tok::r_paren)) {
 1362                                        tok::r_paren, tok::r_square,
 1599       if (LeftOfParens->isOneOf(tok::at, tok::r_square, TT_OverloadedOperator,
 1719         PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::kw_true,
 1776     if (PrevToken->isOneOf(tok::r_paren, tok::r_square, tok::identifier))
 2091             Next->Next->Next->is(tok::r_square))
 2347     if (Left.is(tok::r_square))
 2618     return (Left.is(TT_ArrayInitializerLSquare) && Right.isNot(tok::r_square) &&
 2622             Style.SpacesInSquareBrackets && Right.isNot(tok::r_square));
 2623   if (Right.is(tok::r_square))
 2651         (Left.is(tok::r_square) && Left.is(TT_AttributeSquare)))
 2665              (Left.is(tok::r_square) && Left.MatchingParen &&
 2674   if ((Left.isOneOf(tok::identifier, tok::greater, tok::r_square,
 2812            Left.Previous->isOneOf(tok::r_square, tok::r_brace)))) &&
 2848     if (Left.is(tok::r_square) && Right.is(tok::l_brace))
 3134       ((Left.is(TT_AttributeSquare) && Left.is(tok::r_square)) ||
 3135        (Left.is(tok::r_square) && Right.is(TT_AttributeSquare) &&
 3179       Right.is(TT_SelectorName) && !Right.is(tok::r_square) && Right.Next) {
 3231     if (Left.isOneOf(tok::r_brace, tok::greater, tok::r_square))
 3286          Left.isOneOf(tok::r_square, tok::r_paren)) &&
 3383   if (Right.is(TT_ObjCMethodExpr) && !Right.is(tok::r_square) &&
 3426   if (Right.is(tok::r_square) && Right.MatchingParen &&
 3464   if (Right.is(tok::r_square) && Right.MatchingParen &&
 3524       (Left.is(tok::r_square) && Right.is(TT_AttributeSquare)))
tools/clang/lib/Format/UnwrappedLineParser.cpp
  441           ProbablyBracedList = NextTok->isOneOf(tok::comma, tok::r_square);
  462                                tok::r_paren, tok::r_square, tok::l_brace,
  965        Previous->isOneOf(tok::r_square, tok::r_paren, tok::plusplus,
 1736     case tok::r_square:
tools/clang/lib/Lex/Lexer.cpp
 3489     Kind = tok::r_square;
 3803       Kind = tok::r_square; // ':>' -> ']'
tools/clang/lib/Lex/ModuleMap.cpp
 1539   case tok::r_square:
tools/clang/lib/Lex/Preprocessor.cpp
  923     case tok::r_paren: case tok::r_square:
 1077     case tok::r_paren: case tok::r_square: case tok::r_brace:
tools/clang/lib/Parse/ParseCXXInlineMethods.cpp
  694       ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/false);
  714     case tok::r_square:
 1170       ConsumeAndStoreUntil(tok::r_square, Toks, /*StopAtSemi=*/false);
 1193     case tok::r_square:
tools/clang/lib/Parse/ParseDecl.cpp
 1646     SkipUntil(tok::r_square);
 1647     assert(Tok.is(tok::r_square) && "isCXX11AttributeSpecifier lied");
 1895     case tok::r_square:
 1939       SkipUntil(tok::r_square);
 6044         GetLookAheadToken(2).isOneOf(tok::comma, tok::r_square)) &&
 6045       !(NextToken().is(tok::r_square) &&
 6053   while (Tok.isNot(tok::r_square)) {
 6066         SkipUntil(tok::r_square, tok::comma, tok::identifier,
 6084   if (Tok.isNot(tok::r_square))
 6745   if (Tok.getKind() == tok::r_square) {
 6757              GetLookAheadToken(1).is(tok::r_square)) {
 6799   if (Tok.is(tok::star) && GetLookAheadToken(1).is(tok::r_square)) {
 6807   } else if (Tok.isNot(tok::r_square)) {
 6834     SkipUntil(tok::r_square, StopAtSemi);
tools/clang/lib/Parse/ParseDeclCXX.cpp
 1717         if (!SkipUntil(tok::r_square, StopAtSemi))
 4070       SkipUntil(tok::r_square, tok::colon, StopBeforeMatch);
 4078   while (Tok.isNot(tok::r_square)) {
 4099         SkipUntil(tok::r_square, tok::comma, StopAtSemi | StopBeforeMatch);
 4139   if (ExpectAndConsume(tok::r_square))
 4140     SkipUntil(tok::r_square);
 4143   if (ExpectAndConsume(tok::r_square))
 4144     SkipUntil(tok::r_square);
 4307       SkipUntil(tok::r_square, tok::identifier, StopAtSemi | StopBeforeMatch);
tools/clang/lib/Parse/ParseExpr.cpp
  325         Tok.isOneOf(tok::colon, tok::r_square) &&
 1007          (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) ||
 1024           Next.is(tok::colon) || Next.is(tok::r_square))
 1549           (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) {
 1596           if (Tok.isNot(tok::r_square))
 1608           Tok.is(tok::r_square)) {
 2513         (NextToken().is(tok::colon) || NextToken().is(tok::r_square))) {
tools/clang/lib/Parse/ParseExprCXX.cpp
  729     SkipUntil(tok::r_square, StopAtSemi);
  753   if (Next.is(tok::r_square) ||     // []
  756        After.isOneOf(tok::r_square, tok::comma)) ||
  758        After.is(tok::r_square)) ||
  851       (NextToken().is(tok::comma) || NextToken().is(tok::r_square))) {
  867   while (Tok.isNot(tok::r_square)) {
 1046         NextToken().isOneOf(tok::colon, tok::r_square)) {
 1772   case tok::r_square:
 3084         First ? (Tok.is(tok::r_square) ? ExprResult() : ParseExpression())
 3088       SkipUntil(tok::r_square, StopAtSemi);
 3155   if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) {
tools/clang/lib/Parse/ParseInit.cpp
   43     case tok::r_square:
  253         SkipUntil(tok::r_square, StopAtSemi);
  291           SkipUntil(tok::r_square, StopAtSemi);
  303             SkipUntil(tok::r_square, StopAtSemi);
  333         SkipUntil(tok::r_square, StopAtSemi);
  343         Tok.isNot(tok::r_square)) {
  359         SkipUntil(tok::r_square, StopAtSemi);
tools/clang/lib/Parse/ParseObjc.cpp
 2990     if (AfterNext.isOneOf(tok::colon, tok::r_square)) {
 3038       SkipUntil(tok::r_square, StopAtSemi);
 3065         SkipUntil(tok::r_square, StopAtSemi);
 3079           SkipUntil(tok::r_square, StopAtSemi);
 3098     SkipUntil(tok::r_square, StopAtSemi);
 3183         SkipUntil(tok::r_square, StopAtSemi);
 3219         SkipUntil(tok::r_square, StopAtSemi);
 3265         SkipUntil(tok::r_square, StopAtSemi);
 3278     SkipUntil(tok::r_square, StopAtSemi);
 3282   if (Tok.isNot(tok::r_square)) {
 3284         << (Tok.is(tok::identifier) ? tok::colon : tok::r_square);
 3288     SkipUntil(tok::r_square, StopAtSemi);
 3407   while (Tok.isNot(tok::r_square)) {
 3414       SkipUntil(tok::r_square, StopAtSemi);
 3432     else if (Tok.isNot(tok::r_square))
 3433       return ExprError(Diag(Tok, diag::err_expected_either) << tok::r_square
tools/clang/lib/Parse/ParseTentative.cpp
  193         if (!SkipUntil(tok::r_square))
  668     bool IsAttribute = SkipUntil(tok::r_square);
  669     IsAttribute &= Tok.is(tok::r_square);
  706       if (Tok.is(tok::r_square))
  729   while (Tok.isNot(tok::r_square)) {
  770     if (Tok.is(tok::r_square)) {
  772       IsAttribute = Tok.is(tok::r_square);
  832     if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) {
  846     if (NextToken().is(tok::r_square)) {
 2069   if (!SkipUntil(tok::r_square, StopAtSemi))
tools/clang/lib/Parse/Parser.cpp
  164   if ((Tok.is(tok::r_paren) || Tok.is(tok::r_square)) &&
  306         SkipUntil(tok::r_square, StopAtCodeCompletion);
  308         SkipUntil(tok::r_square);
  337     case tok::r_square:
 2484       P.Tok.isNot(tok::r_square) &&
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
 1223     tok::r_square, tok::r_square
 1223     tok::r_square, tok::r_square
 1229     tok::r_square, tok::r_square
 1229     tok::r_square, tok::r_square
tools/clang/lib/Sema/SemaDecl.cpp
 2734          tok::r_square, tok::r_square});
 2734          tok::r_square, tok::r_square});
tools/clang/tools/extra/clang-tidy/bugprone/MacroParenthesesCheck.cpp
   50   return T.isOneOf(tok::r_paren, tok::r_brace, tok::r_square, tok::comma,
  125     } else if (Tok.isOneOf(tok::r_paren, tok::r_brace, tok::r_square)) {
tools/clang/tools/extra/clangd/Format.cpp
   50       case tok::r_square:
tools/clang/unittests/Basic/SourceManagerTest.cpp
   84   ASSERT_EQ(tok::r_square, toks[2].getKind());
tools/clang/unittests/Lex/LexerTest.cpp
  269   ExpectedTokens.push_back(tok::r_square);
  272   ExpectedTokens.push_back(tok::r_square);
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp
  228       if (!ConsumeBrackets(tok::l_square, tok::r_square))
  340       if (!ConsumeBrackets(tok::l_square, tok::r_square))
  363     if (ConsumeBrackets(tok::l_square, tok::r_square))
tools/lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp
   77     case tok::r_square: