Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DCPlusPlusNameParser.cpp272 case tok::l_square: in ConsumeTemplateArgs()
278 else if (ConsumeBrackets(tok::l_square, tok::r_square)) in ConsumeTemplateArgs()
304 if (!ConsumeToken(tok::l_square)) in ConsumeAbiTag()
446 if (HasMoreTokens() && Peek().is(tok::l_square)) { in ConsumeOperator()
448 if (!ConsumeBrackets(tok::l_square, tok::r_square)) in ConsumeOperator()
468 case tok::l_square: in ConsumeOperator()
471 if (ConsumeBrackets(tok::l_square, tok::r_square)) in ConsumeOperator()
598 case tok::l_square: { in ParseFullNameImpl()
/freebsd-14.2/contrib/llvm-project/clang/lib/Parse/
H A DParseInit.cpp37 case tok::l_square: { // designator: array-designator in MayBeDesignationStart()
199 while (Tok.is(tok::period) || Tok.is(tok::l_square)) { in ParseInitializerWithPotentialDesignator()
222 assert(Tok.is(tok::l_square) && "Unexpected token!"); in ParseInitializerWithPotentialDesignator()
243 BalancedDelimiterTracker T(*this, tok::l_square); in ParseInitializerWithPotentialDesignator()
H A DParseTentative.cpp746 if (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) in isCXX11AttributeSpecifier()
884 while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec, in TrySkipAttributes()
887 if (Tok.is(tok::l_square)) { in TrySkipAttributes()
889 if (Tok.isNot(tok::l_square)) in TrySkipAttributes()
964 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in TryParseOperatorId()
977 case tok::l_square: in TryParseOperatorId()
1170 } else if (Tok.is(tok::l_square)) { in TryParseDeclarator()
1999 tok::kw_throw, tok::kw_noexcept, tok::l_square, in isCXXFunctionDeclarator()
H A DParseExprCXX.cpp88 if (!Next.is(tok::l_square) || Next.getLength() != 2) in CheckForTemplateAndDigraph()
755 && Tok.is(tok::l_square) in TryParseLambdaExpression()
833 BalancedDelimiterTracker T(*this, tok::l_square); in ParseLambdaIntroducer()
1407 (Tok.is(tok::l_square) && NextToken().is(tok::l_square)); in ParseLambdaExpressionAfterIntroducer()
1575 if (Tok.is(tok::l_square) && Tok.getLength() == 2) { in ParseCXXCasts()
2645 if (Tok.is(tok::l_square) && in ParseUnqualifiedIdOperator()
2685 case tok::l_square: { in ParseUnqualifiedIdOperator()
2687 BalancedDelimiterTracker T(*this, tok::l_square); in ParseUnqualifiedIdOperator()
3310 while (Tok.is(tok::l_square)) { in ParseDirectNewDeclarator()
3315 BalancedDelimiterTracker T(*this, tok::l_square); in ParseDirectNewDeclarator()
[all …]
H A DParseExpr.cpp306 (Tok.is(tok::l_square) && !NextToken().is(tok::l_square))) { in ParseConstraintLogicalAndExpression()
1800 case tok::l_square: in ParseCastExpression()
1848 case tok::l_square: in ParseCastExpression()
1949 case tok::l_square: { // postfix-expression: p-e '[' expression ']' in ParsePostfixExpressionSuffix()
1966 BalancedDelimiterTracker T(*this, tok::l_square); in ParsePostfixExpressionSuffix()
2722 } else if (Tok.is(tok::l_square)) { in ParseBuiltinPrimaryExpression()
2729 BalancedDelimiterTracker ST(*this, tok::l_square); in ParseBuiltinPrimaryExpression()
2897 assert(Tok.is(tok::l_square) && "Expected open bracket"); in tryParseOpenMPArrayShapingCastPart()
2901 if (Tok.isNot(tok::l_square)) in tryParseOpenMPArrayShapingCastPart()
3228 ExprType == CastExpr && Tok.is(tok::l_square) && in ParseParenExpression()
[all …]
H A DParseDecl.cpp1738 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square)); in DiagnoseProhibitedCXX11Attribute()
1769 assert((Tok.is(tok::l_square) && NextToken().is(tok::l_square)) || in DiagnoseMisplacedCXX11Attribute()
2072 case tok::l_square: in MightBeDeclarator()
2117 case tok::l_square: in SkipMalformedDecl()
2971 case tok::l_square: in ParseImplicitInt()
3435 case tok::l_square: in ParseDeclarationSpecifiers()
5943 case tok::l_square: in isConstructorDeclarator()
6683 if (Tok.is(tok::l_square)) in ParseDirectDeclarator()
6789 } else if (Tok.is(tok::l_square)) { in ParseDirectDeclarator()
6824 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.cpp638 NextToken().is(tok::ellipsis) || NextToken().is(tok::l_square) || in ParseUsingDeclarator()
1427 case tok::l_square: // void f(struct f [ 3]) in isValidAfterTypeSpecifier()
1868 (NextToken().is(tok::l_square) || in ParseClassSpecifier()
1883 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) { in ParseClassSpecifier()
4563 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square) && in ParseCXX11AttributeSpecifierInternal()
4576 checkCompoundToken(OpenLoc, tok::l_square, CompoundToken::AttrBegin); in ParseCXX11AttributeSpecifierInternal()
4720 if (Tok.is(tok::l_square)) { in SkipCXX11Attributes()
4721 BalancedDelimiterTracker T(*this, tok::l_square); in SkipCXX11Attributes()
4837 assert(Tok.is(tok::l_square) && "Not a Microsoft attribute list"); in ParseMicrosoftAttributes()
4843 BalancedDelimiterTracker T(*this, tok::l_square); in ParseMicrosoftAttributes()
[all …]
H A DParseCXXInlineMethods.cpp852 case tok::l_square: in ConsumeAndStoreUntil()
1326 case tok::l_square: in ConsumeAndStoreInitializer()
/freebsd-14.2/contrib/llvm-project/clang/lib/Format/
H A DTokenAnnotator.cpp88 if (!IsCpp || !Tok.startsSequence(tok::l_square, tok::l_square)) in isCppAttribute()
461 (CurrentToken->Next->is(tok::l_square) && in parseParens()
1237 case tok::l_square: in consumeToken()
2343 if (!Tok || Tok->isNot(tok::l_square)) in rParenEndsCast()
3751 if (Right.is(tok::l_square)) in splitPenalty()
3759 if (Right.is(tok::l_square)) { in splitPenalty()
4057 if (Left.is(tok::l_square) && Right.is(tok::amp)) in spaceRequiredBetween()
4208 if (Left.is(tok::l_square)) { in spaceRequiredBetween()
4225 if (Right.is(tok::l_square) && in spaceRequiredBetween()
4733 if (Right.is(tok::l_square) && in spaceRequiredBefore()
[all …]
H A DUnwrappedLineParser.cpp318 case tok::l_square: in parseCSharpAttribute()
457 case tok::l_square: in parseLevel()
2062 case tok::l_square: in parseStructuralElement()
2210 assert(FormatTok->is(tok::l_square)); in tryToParseLambda()
2233 case tok::l_square: in tryToParseLambda()
2449 case tok::l_square: in parseBracedList()
2554 case tok::l_square: in parseParens()
2626 case tok::l_square: in parseSquare()
3303 case tok::l_square: in isCOperatorFollowingVar()
3597 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.cpp145 tok::question, tok::l_square}; in tryMergePreviousTokens()
156 Tokens.back()->Tok.setKind(tok::l_square); in tryMergePreviousTokens()
280 if (Style.isTableGen() && tryMergeTokens({tok::l_square, tok::l_brace}, in tryMergePreviousTokens()
569 tok::r_brace, tok::l_square, tok::semi, tok::exclaim, in precedesOperand()
H A DDefinitionBlockSeparator.cpp39 if (Tok->isOneOf(tok::l_brace, tok::l_paren, tok::l_square)) in separateBlocks()
H A DFormatToken.h684 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square, in opensScope()
813 if (!Style.isCpp() || isNot(tok::l_square)) in isCppStructuredBinding()
H A DContinuationIndenter.cpp348 if (Previous.is(tok::l_square) && Previous.is(TT_ObjCMethodExpr)) in canBreak()
785 if (!Tok.isOneOf(tok::l_paren, TT_TemplateOpener, tok::l_square) && in addTokenOnCurrentLine()
1972 if (NextNonComment && NextNonComment->isNot(tok::l_square)) in moveStatePastScopeCloser()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Parse/
H A DRAIIObjectsForParser.h429 case tok::l_square: return P.BracketCount; in getDepth()
455 case tok::l_square:
H A DParser.h581 return Tok.isOneOf(tok::l_square, tok::r_square); in isTokenBracket()
637 if (Tok.getKind() == tok::l_square) in ConsumeBracket()
1847 return (K == tok::l_square || K == tok::l_paren || in isPostfixExpressionSuffixStart()
2748 assert(Tok.is(tok::l_square)); in CheckProhibitedCXX11Attribute()
2749 if (NextToken().isNot(tok::l_square)) in CheckProhibitedCXX11Attribute()
2758 (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) && in CheckMisplacedCXX11Attribute()
2974 Tok.is(tok::l_square)) { in MaybeParseMicrosoftAttributes()
/freebsd-14.2/contrib/llvm-project/llvm/lib/TableGen/
H A DTGLexer.h40 l_square, // [ enumerator
H A DTGLexer.cpp528 return tgtok::l_square; in LexBracket()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/Language/ClangCommon/
H A DClangHighlighter.cpp78 case tok::l_square: in determineClangStyle()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp1251 tok::l_square, tok::l_square, in getFallthroughAttrSpelling()
1257 tok::l_square, tok::l_square, PP.getIdentifierInfo("clang"), in getFallthroughAttrSpelling()
2345 tok::l_square, in getUnsafeBufferUsageAttributeTextAt()
2346 tok::l_square, in getUnsafeBufferUsageAttributeTextAt()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DCommentSema.cpp675 TokenValue Tokens[] = {tok::l_square, tok::l_square, in checkDeprecatedCommand()
/freebsd-14.2/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessor.cpp892 case tok::l_paren: case tok::l_square: case tok::l_brace: in Lex()
1091 case tok::l_paren: case tok::l_square: case tok::l_brace: in CollectPpImportSuffix()
H A DDependencyDirectivesScanner.cpp967 return !Tok.isOneOf(tok::l_paren, tok::r_paren, tok::l_square, in printDependencyDirectivesAsSource()

12