Home
last modified time | relevance | path

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

12

/freebsd/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/contrib/llvm-project/clang/lib/Format/
H A DTokenAnnotator.cpp88 if (!IsCpp || !Tok.startsSequence(tok::l_square, tok::l_square)) in isCppAttribute()
490 (CurrentToken->Next->is(tok::l_square) && in parseParens()
655 tok::l_square, Keywords.kw_internal)) { in isCSharpAttributeSpecifier()
705 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
766 if (!Left->endsSequence(tok::l_square, tok::numeric_constant, in parseSquare()
768 !Left->endsSequence(tok::l_square, tok::numeric_constant, in parseSquare()
770 !Left->endsSequence(tok::l_square, tok::colon, TT_SelectorName)) { in parseSquare()
776 tok::comma, tok::l_paren, tok::l_square, in parseSquare()
787 ScopedContextCreator ContextCreator(*this, tok::l_square, BindingIncrease); in parseSquare()
949 if (CurrentToken->isOneOf(tok::l_brace, tok::l_square, tok::period)) { in parseTableGenValue()
[all …]
H A DUnwrappedLineParser.cpp323 case tok::l_square: in parseCSharpAttribute()
462 case tok::l_square: in parseLevel()
601 if (!Style.isCSharp() && NextTok->is(tok::l_square)) { in calculateBraceTypes()
605 ProbablyBracedList = NextTok->isNot(tok::l_square); in calculateBraceTypes()
1439 while (FormatTok->is(tok::l_square) && handleCppAttributes()) { in parseStructuralElement()
2091 case tok::l_square: in parseStructuralElement()
2190 Tok->isOneOf(tok::l_square, tok::semi, Keywords.kw_internal)) { in tryToParsePropertyAccessor()
2193 else if (Tok->is(tok::l_square)) in tryToParsePropertyAccessor()
2260 assert(FormatTok->is(tok::l_square)); in tryToParseLambda()
2283 case tok::l_square: in tryToParseLambda()
[all …]
H A DDefinitionBlockSeparator.cpp38 if (Tok->isOneOf(tok::l_brace, tok::l_paren, tok::l_square)) in separateBlocks()
H A DFormatTokenLexer.cpp199 tok::question, tok::l_square}; in tryMergePreviousTokens()
210 Tokens.back()->Tok.setKind(tok::l_square); in tryMergePreviousTokens()
331 if (tryMergeTokens({tok::l_square, tok::l_brace}, in tryMergePreviousTokens()
672 tok::r_brace, tok::l_square, tok::semi, tok::exclaim, in precedesOperand()
H A DFormatToken.h732 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square, in opensScope()
865 if (!IsCpp || isNot(tok::l_square)) in isCppStructuredBinding()
/freebsd/contrib/llvm-project/lldb/source/ValueObject/
H A DDILLexer.cpp35 case Kind::l_square: in GetTokenName()
118 {Token::l_paren, "("}, {Token::l_square, "["}, {Token::minus, "-"}, in Lex()
H A DDILParser.cpp129 while (CurToken().IsOneOf({Token::l_square, Token::period, Token::arrow})) { in ParsePostfixExpression()
133 case Token::l_square: { in ParsePostfixExpression()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseInit.cpp33 case tok::l_square: { // designator: array-designator in MayBeDesignationStart()
153 while (Tok.is(tok::period) || Tok.is(tok::l_square)) { in ParseInitializerWithPotentialDesignator()
177 assert(Tok.is(tok::l_square) && "Unexpected token!"); in ParseInitializerWithPotentialDesignator()
198 BalancedDelimiterTracker T(*this, tok::l_square); in ParseInitializerWithPotentialDesignator()
H A DParseTentative.cpp595 if (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) in isCXX11AttributeSpecifier()
734 while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec, in TrySkipAttributes()
737 if (Tok.is(tok::l_square)) { in TrySkipAttributes()
738 if (!NextToken().is(tok::l_square)) in TrySkipAttributes()
798 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in TryParseOperatorId()
811 case tok::l_square: in TryParseOperatorId()
951 } else if (Tok.is(tok::l_square)) { in TryParseDeclarator()
1037 GetLookAheadToken(2).is(tok::l_square)) { in isCXXDeclarationSpecifier()
1683 tok::kw_throw, tok::kw_noexcept, tok::l_square, in isCXXFunctionDeclarator()
H A DParseExprCXX.cpp87 if (!Next.is(tok::l_square) || Next.getLength() != 2) in CheckForTemplateAndDigraph()
189 GetLookAheadToken(2).is(tok::l_square) && in ParseOptionalCXXScopeSpecifier()
635 assert(Tok.is(tok::ellipsis) && NextToken().is(tok::l_square) && in ParseCXXPackIndexingExpression()
638 BalancedDelimiterTracker T(*this, tok::l_square); in ParseCXXPackIndexingExpression()
652 Tok.is(tok::ellipsis) && NextToken().is(tok::l_square)) { in tryParseCXXPackIndexingExpression()
696 assert(getLangOpts().CPlusPlus && Tok.is(tok::l_square) && in TryParseLambdaExpression()
764 assert(Tok.is(tok::l_square) && "Lambda expressions begin with '['."); in ParseLambdaIntroducer()
765 BalancedDelimiterTracker T(*this, tok::l_square); in ParseLambdaIntroducer()
1352 (Tok.is(tok::l_square) && NextToken().is(tok::l_square)); in ParseLambdaExpressionAfterIntroducer()
1511 if (Tok.is(tok::l_square) && Tok.getLength() == 2) { in ParseCXXCasts()
[all …]
H A DParseExpr.cpp233 (Tok.is(tok::l_square) && !NextToken().is(tok::l_square))) { in ParseConstraintLogicalAndExpression()
875 GetLookAheadToken(2).is(tok::l_square)) { in ParseCastExpression()
1544 case tok::l_square: in ParseCastExpression()
1592 case tok::l_square: in ParseCastExpression()
1672 case tok::l_square: { // postfix-expression: p-e '[' expression ']' in ParsePostfixExpressionSuffix()
1688 BalancedDelimiterTracker T(*this, tok::l_square); in ParsePostfixExpressionSuffix()
2409 } else if (Tok.is(tok::l_square)) { in ParseBuiltinPrimaryExpression()
2416 BalancedDelimiterTracker ST(*this, tok::l_square); in ParseBuiltinPrimaryExpression()
2584 assert(Tok.is(tok::l_square) && "Expected open bracket"); in tryParseOpenMPArrayShapingCastPart()
2588 if (Tok.isNot(tok::l_square)) in tryParseOpenMPArrayShapingCastPart()
[all …]
H A DParseDeclCXX.cpp590 NextToken().is(tok::ellipsis) || NextToken().is(tok::l_square) || in ParseUsingDeclarator()
1185 !GetLookAheadToken(2).is(tok::l_square)) { in ParsePackIndexingType()
1200 BalancedDelimiterTracker T(*this, tok::l_square); in ParsePackIndexingType()
1469 case tok::l_square: // void f(struct f [ 3]) in isValidAfterTypeSpecifier()
1879 (NextToken().is(tok::l_square) || in ParseClassSpecifier()
1894 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) { in ParseClassSpecifier()
4637 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square) && in ParseCXX11AttributeSpecifierInternal()
4650 checkCompoundToken(OpenLoc, tok::l_square, CompoundToken::AttrBegin); in ParseCXX11AttributeSpecifierInternal()
4795 if (Tok.is(tok::l_square)) { in SkipCXX11Attributes()
4796 BalancedDelimiterTracker T(*this, tok::l_square); in SkipCXX11Attributes()
[all …]
H A DParseCXXInlineMethods.cpp866 case tok::l_square: in ConsumeAndStoreUntil()
990 if (Tok.is(tok::ellipsis) && NextToken().is(tok::l_square)) { in ConsumeAndStoreFunctionPrologue()
997 Diag(OpenLoc, diag::note_matching) << tok::l_square; in ConsumeAndStoreFunctionPrologue()
1298 case tok::l_square: in ConsumeAndStoreInitializer()
H A DParseDecl.cpp1736 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square)); in DiagnoseProhibitedCXX11Attribute()
1763 assert((Tok.is(tok::l_square) && NextToken().is(tok::l_square)) || in DiagnoseMisplacedCXX11Attribute()
1812 if (FirstLSquare.is(tok::l_square)) { in ProhibitCXX11Attributes()
1816 if (SecondLSquare && SecondLSquare->is(tok::l_square)) { in ProhibitCXX11Attributes()
1999 case tok::l_square: // Might be an attribute on an unnamed bit-field. in MightBeDeclarator()
2001 NextToken().is(tok::l_square); in MightBeDeclarator()
2018 case tok::l_square: in MightBeDeclarator()
2060 case tok::l_square: in SkipMalformedDecl()
2794 return T.isOneOf(tok::l_square, tok::l_paren, tok::r_paren, tok::semi, in isValidAfterIdentifierInDeclarator()
2962 case tok::l_square: in ParseImplicitInt()
[all …]
H A DParseStmtAsm.cpp830 if (Tok.is(tok::l_square)) { in ParseAsmOperandsOpt()
831 BalancedDelimiterTracker T(*this, tok::l_square); in ParseAsmOperandsOpt()
/freebsd/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.h596 return Tok.isOneOf(tok::l_square, tok::r_square); in isTokenBracket()
650 if (Tok.getKind() == tok::l_square) in ConsumeBracket()
2041 assert(Tok.is(tok::l_square)); in CheckProhibitedCXX11Attribute()
2042 if (NextToken().isNot(tok::l_square)) in CheckProhibitedCXX11Attribute()
2060 (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) && in CheckMisplacedCXX11Attribute()
2291 Tok.is(tok::l_square)) { in MaybeParseMicrosoftAttributes()
4053 return (K == tok::l_square || K == tok::l_paren || K == tok::period || in isPostfixExpressionSuffixStart()
/freebsd/contrib/llvm-project/lldb/include/lldb/ValueObject/
H A DDILLexer.h33 l_square, enumerator
/freebsd/contrib/llvm-project/llvm/lib/TableGen/
H A DTGLexer.h40 l_square, // [ enumerator
H A DTGLexer.cpp561 return tgtok::l_square; in LexBracket()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/ClangCommon/
H A DClangHighlighter.cpp78 case tok::l_square: in determineClangStyle()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp1391 tok::l_square, tok::l_square, in getFallthroughAttrSpelling()
1397 tok::l_square, tok::l_square, PP.getIdentifierInfo("clang"), in getFallthroughAttrSpelling()
2633 tok::l_square, in getUnsafeBufferUsageAttributeTextAt()
2634 tok::l_square, in getUnsafeBufferUsageAttributeTextAt()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DCommentSema.cpp677 TokenValue Tokens[] = {tok::l_square, tok::l_square, in checkDeprecatedCommand()
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessor.cpp919 case tok::l_paren: case tok::l_square: case tok::l_brace: in Lex()
1131 case tok::l_paren: case tok::l_square: case tok::l_brace: in CollectPpImportSuffix()

12