Home
last modified time | relevance | path

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

12

/openbsd/src/gnu/llvm/lldb/source/Plugins/Language/CPlusPlus/
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()
/openbsd/src/gnu/llvm/clang/lib/Parse/
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()
DParseTentative.cpp711 if (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) in isCXX11AttributeSpecifier()
849 while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec, in TrySkipAttributes()
851 if (Tok.is(tok::l_square)) { in TrySkipAttributes()
853 if (Tok.isNot(tok::l_square)) in TrySkipAttributes()
925 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in TryParseOperatorId()
938 case tok::l_square: in TryParseOperatorId()
1130 } else if (Tok.is(tok::l_square)) { in TryParseDeclarator()
1923 tok::kw_throw, tok::kw_noexcept, tok::l_square, in isCXXFunctionDeclarator()
DParseExprCXX.cpp87 if (!Next.is(tok::l_square) || Next.getLength() != 2) in CheckForTemplateAndDigraph()
754 && Tok.is(tok::l_square) in TryParseLambdaExpression()
831 assert(Tok.is(tok::l_square) && "Lambda expressions begin with '['."); in ParseLambdaIntroducer()
832 BalancedDelimiterTracker T(*this, tok::l_square); in ParseLambdaIntroducer()
1493 (Tok.is(tok::l_square) && NextToken().is(tok::l_square))) { in ParseLambdaExpressionAfterIntroducer()
1565 if (Tok.is(tok::l_square) && Tok.getLength() == 2) { in ParseCXXCasts()
2628 if (Tok.is(tok::l_square) && in ParseUnqualifiedIdOperator()
2629 (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square))) { in ParseUnqualifiedIdOperator()
2631 BalancedDelimiterTracker T(*this, tok::l_square); in ParseUnqualifiedIdOperator()
2668 case tok::l_square: { in ParseUnqualifiedIdOperator()
[all …]
DParseExpr.cpp295 (Tok.is(tok::l_square) && !NextToken().is(tok::l_square))) { in ParseConstraintLogicalAndExpression()
1769 case tok::l_square: in ParseCastExpression()
1817 case tok::l_square: in ParseCastExpression()
1918 case tok::l_square: { // postfix-expression: p-e '[' expression ']' in ParsePostfixExpressionSuffix()
1935 BalancedDelimiterTracker T(*this, tok::l_square); in ParsePostfixExpressionSuffix()
2647 } else if (Tok.is(tok::l_square)) { in ParseBuiltinPrimaryExpression()
2654 BalancedDelimiterTracker ST(*this, tok::l_square); in ParseBuiltinPrimaryExpression()
2816 assert(Tok.is(tok::l_square) && "Expected open bracket"); in tryParseOpenMPArrayShapingCastPart()
2820 if (Tok.isNot(tok::l_square)) in tryParseOpenMPArrayShapingCastPart()
3147 ExprType == CastExpr && Tok.is(tok::l_square) && in ParseParenExpression()
[all …]
DParseDecl.cpp1624 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square)); in DiagnoseProhibitedCXX11Attribute()
1655 assert((Tok.is(tok::l_square) && NextToken().is(tok::l_square)) || in DiagnoseMisplacedCXX11Attribute()
1691 if (FirstLSquare.is(tok::l_square)) { in ProhibitCXX11Attributes()
1695 if (SecondLSquare && SecondLSquare->is(tok::l_square)) { in ProhibitCXX11Attributes()
1916 case tok::l_square: // Might be an attribute on an unnamed bit-field. in MightBeDeclarator()
1918 NextToken().is(tok::l_square); in MightBeDeclarator()
1935 case tok::l_square: in MightBeDeclarator()
1980 case tok::l_square: in SkipMalformedDecl()
2650 return T.isOneOf(tok::l_square, tok::l_paren, tok::r_paren, tok::semi, in isValidAfterIdentifierInDeclarator()
2827 case tok::l_square: in ParseImplicitInt()
[all …]
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()
DParseDeclCXX.cpp643 NextToken().is(tok::ellipsis) || NextToken().is(tok::l_square) || in ParseUsingDeclarator()
1409 case tok::l_square: // void f(struct f [ 3]) in isValidAfterTypeSpecifier()
1844 (NextToken().is(tok::l_square) || in ParseClassSpecifier()
1858 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) { in ParseClassSpecifier()
4472 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square) && in ParseCXX11AttributeSpecifierInternal()
4479 checkCompoundToken(OpenLoc, tok::l_square, CompoundToken::AttrBegin); in ParseCXX11AttributeSpecifierInternal()
4620 if (Tok.is(tok::l_square)) { in SkipCXX11Attributes()
4621 BalancedDelimiterTracker T(*this, tok::l_square); in SkipCXX11Attributes()
4732 assert(Tok.is(tok::l_square) && "Not a Microsoft attribute list"); in ParseMicrosoftAttributes()
4738 BalancedDelimiterTracker T(*this, tok::l_square); in ParseMicrosoftAttributes()
[all …]
DParseCXXInlineMethods.cpp848 case tok::l_square: in ConsumeAndStoreUntil()
1321 case tok::l_square: in ConsumeAndStoreInitializer()
/openbsd/src/gnu/llvm/clang/lib/Format/
DTokenAnnotator.cpp76 if (!IsCpp || !Tok.startsSequence(tok::l_square, tok::l_square)) in isCppAttribute()
422 (CurrentToken->Next->is(tok::l_square) && in parseParens()
563 tok::l_square, Keywords.kw_internal)) { in isCSharpAttributeSpecifier()
618 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
680 if (!Left->endsSequence(tok::l_square, tok::numeric_constant, in parseSquare()
682 !Left->endsSequence(tok::l_square, tok::numeric_constant, in parseSquare()
684 !Left->endsSequence(tok::l_square, tok::colon, TT_SelectorName)) { in parseSquare()
690 tok::comma, tok::l_paren, tok::l_square, in parseSquare()
701 ScopedContextCreator ContextCreator(*this, tok::l_square, BindingIncrease); in parseSquare()
958 Contexts.back().ContextKind == tok::l_square || // array type in consumeToken()
[all …]
DUnwrappedLineParser.cpp465 case tok::l_square: in parseCSharpAttribute()
613 case tok::l_square: in parseLevel()
737 if (!Style.isCSharp() && NextTok->is(tok::l_square)) { in calculateBraceTypes()
741 ProbablyBracedList = NextTok->isNot(tok::l_square); in calculateBraceTypes()
2111 case tok::l_square: in parseStructuralElement()
2259 assert(FormatTok->is(tok::l_square)); in tryToParseLambda()
2282 case tok::l_square: in tryToParseLambda()
2373 tok::kw_delete, tok::l_square) || in tryToParseLambdaIntroducer()
2378 if (FormatTok->is(tok::l_square)) in tryToParseLambdaIntroducer()
2488 case tok::l_square: in parseBracedList()
[all …]
DNamespaceEndCommentsFixer.cpp54 } else if (Tok->is(tok::l_square)) { in skipAttribute()
55 Tok = processTokens(Tok, tok::l_square, tok::r_square, nullptr); in skipAttribute()
DDefinitionBlockSeparator.cpp39 if (Tok->isOneOf(tok::l_brace, tok::l_paren, tok::l_square)) in separateBlocks()
DFormatTokenLexer.cpp136 tok::question, tok::l_square}; in tryMergePreviousTokens()
147 Tokens.back()->Tok.setKind(tok::l_square); in tryMergePreviousTokens()
527 tok::r_brace, tok::l_square, tok::semi, tok::exclaim, in precedesOperand()
DFormatToken.h629 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square, in opensScope()
760 if (!Style.isCpp() || isNot(tok::l_square)) in isCppStructuredBinding()
DContinuationIndenter.cpp332 if (Previous.is(tok::l_square) && Previous.is(TT_ObjCMethodExpr)) in canBreak()
721 (Previous.isOneOf(tok::l_paren, TT_TemplateOpener, tok::l_square) || in addTokenOnCurrentLine()
1812 if (NextNonComment && NextNonComment->isNot(tok::l_square)) in moveStatePastScopeCloser()
/openbsd/src/gnu/llvm/clang/include/clang/Parse/
DRAIIObjectsForParser.h410 case tok::l_square: return P.BracketCount; in getDepth()
436 case tok::l_square:
DParser.h566 return Tok.isOneOf(tok::l_square, tok::r_square); in isTokenBracket()
622 if (Tok.getKind() == tok::l_square) in ConsumeBracket()
1822 return (K == tok::l_square || K == tok::l_paren || in isPostfixExpressionSuffixStart()
2692 assert(Tok.is(tok::l_square)); in CheckProhibitedCXX11Attribute()
2693 if (!standardAttributesAllowed() || NextToken().isNot(tok::l_square)) in CheckProhibitedCXX11Attribute()
2703 if ((Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) && in CheckMisplacedCXX11Attribute()
2912 Tok.is(tok::l_square)) { in MaybeParseMicrosoftAttributes()
/openbsd/src/gnu/llvm/llvm/lib/TableGen/
DTGLexer.h38 l_square, r_square, // [ ] enumerator
DTGLexer.cpp521 return tgtok::l_square; in LexBracket()
/openbsd/src/gnu/llvm/lldb/source/Plugins/Language/ClangCommon/
DClangHighlighter.cpp78 case tok::l_square: in determineClangStyle()
/openbsd/src/gnu/llvm/clang/lib/AST/
DCommentSema.cpp676 TokenValue Tokens[] = {tok::l_square, tok::l_square, in checkDeprecatedCommand()
/openbsd/src/gnu/llvm/clang/lib/Sema/
DAnalysisBasedWarnings.cpp1227 tok::l_square, tok::l_square, in getFallthroughAttrSpelling()
1233 tok::l_square, tok::l_square, PP.getIdentifierInfo("clang"), in getFallthroughAttrSpelling()
/openbsd/src/gnu/llvm/clang/lib/Lex/
DPreprocessor.cpp924 case tok::l_paren: case tok::l_square: case tok::l_brace: in Lex()
1108 case tok::l_paren: case tok::l_square: case tok::l_brace: in CollectPpImportSuffix()
DDependencyDirectivesScanner.cpp859 return !Tok.isOneOf(tok::l_paren, tok::r_paren, tok::l_square, in printDependencyDirectivesAsSource()

12