Home
last modified time | relevance | path

Searched refs:l_square (Results 1 – 25 of 56) sorted by relevance

123

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DMacroParenthesesCheck.cpp44 return T.isOneOf(tok::l_paren, tok::l_brace, tok::l_square, tok::comma, in isSurroundedLeft()
99 Tok->isOneOf(tok::equal, tok::semi, tok::l_square, tok::l_paren) || in possibleVarDecl()
123 if (Tok.isOneOf(tok::l_paren, tok::l_brace, tok::l_square)) { in replacementList()
180 if (Tok.isOneOf(tok::equal, tok::semi, tok::l_square, tok::l_paren)) in argument()
/llvm-project-15.0.7/lldb/source/Plugins/Language/CPlusPlus/
H A DCPlusPlusNameParser.cpp227 case tok::l_square: in ConsumeTemplateArgs()
228 if (!ConsumeBrackets(tok::l_square, tok::r_square)) in ConsumeTemplateArgs()
369 if (HasMoreTokens() && Peek().is(tok::l_square)) { in ConsumeOperator()
371 if (!ConsumeBrackets(tok::l_square, tok::r_square)) in ConsumeOperator()
391 case tok::l_square: in ConsumeOperator()
394 if (ConsumeBrackets(tok::l_square, tok::r_square)) in ConsumeOperator()
/llvm-project-15.0.7/clang-tools-extra/pseudo/unittests/
H A DBracketTest.cpp73 case tok::l_square: in verifyMatchKind()
76 return {false, tok::l_square}; in verifyMatchKind()
H A DTokenTest.cpp145 AllOf(token("<:", tok::l_square), in TEST()
160 token("<:", tok::l_square), in TEST()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseInit.cpp36 case tok::l_square: { // designator: array-designator in MayBeDesignationStart()
197 while (Tok.is(tok::period) || Tok.is(tok::l_square)) { in ParseInitializerWithPotentialDesignator()
220 assert(Tok.is(tok::l_square) && "Unexpected token!"); in ParseInitializerWithPotentialDesignator()
241 BalancedDelimiterTracker T(*this, tok::l_square); in ParseInitializerWithPotentialDesignator()
H A DParseTentative.cpp668 if (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) in isCXX11AttributeSpecifier()
806 while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec, in TrySkipAttributes()
808 if (Tok.is(tok::l_square)) { in TrySkipAttributes()
810 if (Tok.isNot(tok::l_square)) in TrySkipAttributes()
882 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in TryParseOperatorId()
895 case tok::l_square: in TryParseOperatorId()
1086 } else if (Tok.is(tok::l_square)) { in TryParseDeclarator()
1850 tok::kw_throw, tok::kw_noexcept, tok::l_square, in isCXXFunctionDeclarator()
H A DParseExprCXX.cpp85 if (!Next.is(tok::l_square) || Next.getLength() != 2) in CheckForTemplateAndDigraph()
752 && Tok.is(tok::l_square) in TryParseLambdaExpression()
830 BalancedDelimiterTracker T(*this, tok::l_square); in ParseLambdaIntroducer()
1440 (Tok.is(tok::l_square) && NextToken().is(tok::l_square))) { in ParseLambdaExpressionAfterIntroducer()
1512 if (Tok.is(tok::l_square) && Tok.getLength() == 2) { in ParseCXXCasts()
2576 if (Tok.is(tok::l_square) && in ParseUnqualifiedIdOperator()
2616 case tok::l_square: { in ParseUnqualifiedIdOperator()
2618 BalancedDelimiterTracker T(*this, tok::l_square); in ParseUnqualifiedIdOperator()
3231 while (Tok.is(tok::l_square)) { in ParseDirectNewDeclarator()
3236 BalancedDelimiterTracker T(*this, tok::l_square); in ParseDirectNewDeclarator()
[all …]
H A DParseExpr.cpp294 (Tok.is(tok::l_square) && !NextToken().is(tok::l_square))) { in ParseConstraintLogicalAndExpression()
1742 case tok::l_square: in ParseCastExpression()
1789 case tok::l_square: in ParseCastExpression()
1890 case tok::l_square: { // postfix-expression: p-e '[' expression ']' in ParsePostfixExpressionSuffix()
1907 BalancedDelimiterTracker T(*this, tok::l_square); in ParsePostfixExpressionSuffix()
2608 } else if (Tok.is(tok::l_square)) { in ParseBuiltinPrimaryExpression()
2615 BalancedDelimiterTracker ST(*this, tok::l_square); in ParseBuiltinPrimaryExpression()
2777 assert(Tok.is(tok::l_square) && "Expected open bracket"); in tryParseOpenMPArrayShapingCastPart()
2781 if (Tok.isNot(tok::l_square)) in tryParseOpenMPArrayShapingCastPart()
3110 ExprType == CastExpr && Tok.is(tok::l_square) && in ParseParenExpression()
[all …]
H A DParseDecl.cpp1615 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square)); in DiagnoseProhibitedCXX11Attribute()
1646 assert((Tok.is(tok::l_square) && NextToken().is(tok::l_square)) || in DiagnoseMisplacedCXX11Attribute()
1921 case tok::l_square: in MightBeDeclarator()
1966 case tok::l_square: in SkipMalformedDecl()
2809 case tok::l_square: in ParseImplicitInt()
3233 case tok::l_square: in ParseDeclarationSpecifiers()
5599 case tok::l_square: in isConstructorDeclarator()
6325 if (Tok.is(tok::l_square)) in ParseDirectDeclarator()
6414 } else if (Tok.is(tok::l_square)) { in ParseDirectDeclarator()
6439 assert(Tok.is(tok::l_square)); in ParseDecompositionDeclarator()
[all …]
H A DParseStmtAsm.cpp888 if (!isTokenStringLiteral() && Tok.isNot(tok::l_square)) in ParseAsmOperandsOpt()
893 if (Tok.is(tok::l_square)) { in ParseAsmOperandsOpt()
894 BalancedDelimiterTracker T(*this, tok::l_square); in ParseAsmOperandsOpt()
H A DParseDeclCXX.cpp634 NextToken().is(tok::ellipsis) || NextToken().is(tok::l_square) || in ParseUsingDeclarator()
1355 case tok::l_square: // void f(struct f [ 3]) in isValidAfterTypeSpecifier()
1755 (NextToken().is(tok::l_square) || in ParseClassSpecifier()
1769 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) { in ParseClassSpecifier()
4380 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square) && in ParseCXX11AttributeSpecifierInternal()
4387 checkCompoundToken(OpenLoc, tok::l_square, CompoundToken::AttrBegin); in ParseCXX11AttributeSpecifierInternal()
4530 if (Tok.is(tok::l_square)) { in SkipCXX11Attributes()
4531 BalancedDelimiterTracker T(*this, tok::l_square); in SkipCXX11Attributes()
4642 assert(Tok.is(tok::l_square) && "Not a Microsoft attribute list"); in ParseMicrosoftAttributes()
4648 BalancedDelimiterTracker T(*this, tok::l_square); in ParseMicrosoftAttributes()
[all …]
/llvm-project-15.0.7/clang/lib/Format/
H A DTokenAnnotator.cpp380 (CurrentToken->Next->is(tok::l_square) && in parseParens()
535 if (!Style.isCpp() || !Tok.startsSequence(tok::l_square, tok::l_square)) in isCpp11AttributeSpecifier()
1090 case tok::l_square: in consumeToken()
2089 if (!Tok || Tok->isNot(tok::l_square)) in rParenEndsCast()
3064 if (Right.is(tok::l_square)) { in splitPenalty()
3352 if (Left.is(tok::l_square) && Right.is(tok::amp)) in spaceRequiredBetween()
3501 if (Left.is(tok::l_square)) { in spaceRequiredBetween()
3519 if (Right.is(tok::l_square) && in spaceRequiredBetween()
3773 if (Left.is(tok::kw_this) && Right.is(tok::l_square)) in spaceRequiredBefore()
3873 if (Right.isOneOf(tok::l_brace, tok::l_square) && in spaceRequiredBefore()
[all …]
H A DUnwrappedLineParser.cpp448 case tok::l_square: in parseCSharpAttribute()
592 case tok::l_square: in parseLevel()
1972 case tok::l_square: in parseStructuralElement()
2108 case tok::l_square: in tryToParseLambda()
2201 if (FormatTok->is(tok::l_square)) in tryToParseLambdaIntroducer()
2311 case tok::l_square: in parseBracedList()
2390 case tok::l_square: in parseParens()
2460 case tok::l_square: in parseSquare()
3053 case tok::l_square: in isCOperatorFollowingVar()
3345 case tok::l_square: in parseConstraintExpression()
[all …]
H A DNamespaceEndCommentsFixer.cpp54 } else if (Tok->is(tok::l_square)) { in skipAttribute()
55 Tok = processTokens(Tok, tok::l_square, tok::r_square, nullptr); in skipAttribute()
H A DFormatTokenLexer.cpp136 tok::question, tok::l_square}; in tryMergePreviousTokens()
147 Tokens.back()->Tok.setKind(tok::l_square); in tryMergePreviousTokens()
437 tok::r_brace, tok::l_square, tok::semi, tok::exclaim, in precedesOperand()
/llvm-project-15.0.7/mlir/lib/AsmParser/
H A DAttributeParser.cpp73 case Token::l_square: { in parseAttribute()
74 consumeToken(Token::l_square); in parseAttribute()
251 case Token::l_square: in parseOptionalAttribute()
268 return parseOptionalAttributeWithToken(Token::l_square, attribute, type); in parseOptionalAttribute()
521 if (p.getToken().is(Token::l_square)) in parse()
798 if (p.getToken().getKind() == Token::l_square) { in parseList()
H A DTokenKinds.def65 TOK_PUNCTUATION(l_square, "[")
H A DAsmParserImpl.h174 return parser.parseToken(Token::l_square, "expected '['"); in parseLSquare()
179 return success(parser.consumeIf(Token::l_square)); in parseOptionalLSquare()
/llvm-project-15.0.7/clang-tools-extra/pseudo/lib/
H A DBracket.cpp105 case clang::tok::l_square: in findBrackets()
/llvm-project-15.0.7/clang/include/clang/Parse/
H A DRAIIObjectsForParser.h397 case tok::l_square: return P.BracketCount; in getDepth()
423 case tok::l_square:
H A DParser.h558 return Tok.isOneOf(tok::l_square, tok::r_square); in isTokenBracket()
614 if (Tok.getKind() == tok::l_square) in ConsumeBracket()
1802 return (K == tok::l_square || K == tok::l_paren || in isPostfixExpressionSuffixStart()
2616 assert(Tok.is(tok::l_square)); in CheckProhibitedCXX11Attribute()
2617 if (!standardAttributesAllowed() || NextToken().isNot(tok::l_square)) in CheckProhibitedCXX11Attribute()
2627 if ((Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) && in CheckMisplacedCXX11Attribute()
2824 Tok.is(tok::l_square)) { in MaybeParseMicrosoftAttributes()
/llvm-project-15.0.7/mlir/lib/Tools/PDLL/Parser/
H A DLexer.h89 l_square, enumerator
/llvm-project-15.0.7/llvm/lib/TableGen/
H A DTGLexer.h38 l_square, r_square, // [ ] enumerator
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DNamespaceCommentCheck.cpp64 if (T->isOneOf(tok::l_square, tok::l_paren)) { in getNamespaceNameAsWritten()
/llvm-project-15.0.7/lldb/source/Plugins/Language/ClangCommon/
H A DClangHighlighter.cpp77 case tok::l_square: in determineClangStyle()

123