Home
last modified time | relevance | path

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

12

/external/clang/lib/Parse/
DParseInit.cpp35 case tok::l_square: { // designator: array-designator in MayBeDesignationStart()
165 while (Tok.is(tok::period) || Tok.is(tok::l_square)) { in ParseInitializerWithPotentialDesignator()
182 assert(Tok.is(tok::l_square) && "Unexpected token!"); in ParseInitializerWithPotentialDesignator()
203 BalancedDelimiterTracker T(*this, tok::l_square); in ParseInitializerWithPotentialDesignator()
DParseTentative.cpp182 while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec, in TryConsumeDeclarationSpecifier()
184 if (Tok.is(tok::l_square)) { in TryConsumeDeclarationSpecifier()
504 if (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) in isCXX11AttributeSpecifier()
670 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in TryParseOperatorId()
683 case tok::l_square: in TryParseOperatorId()
868 } else if (Tok.is(tok::l_square)) { in TryParseDeclarator()
898 case tok::l_square: in isExpressionOrTypeSpecifierSimple()
1608 tok::kw_throw, tok::kw_noexcept, tok::l_square, in isCXXFunctionDeclarator()
DParseExprCXX.cpp83 if (!Next.is(tok::l_square) || Next.getLength() != 2) in CheckForTemplateAndDigraph()
739 && Tok.is(tok::l_square) in TryParseLambdaExpression()
787 assert(Tok.is(tok::l_square) && "Lambda expressions begin with '['."); in ParseLambdaIntroducer()
788 BalancedDelimiterTracker T(*this, tok::l_square); in ParseLambdaIntroducer()
1165 (Tok.is(tok::l_square) && NextToken().is(tok::l_square))) { in ParseLambdaExpressionAfterIntroducer()
1173 case tok::l_square: TokKind = 2; break; in ParseLambdaExpressionAfterIntroducer()
1284 if (Tok.is(tok::l_square) && Tok.getLength() == 2) { in ParseCXXCasts()
2172 if (Tok.is(tok::l_square) && in ParseUnqualifiedIdOperator()
2173 (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square))) { in ParseUnqualifiedIdOperator()
2175 BalancedDelimiterTracker T(*this, tok::l_square); in ParseUnqualifiedIdOperator()
[all …]
DRAIIObjectsForParser.h374 case tok::l_square: return P.BracketCount; in getDepth()
402 case tok::l_square:
DParseStmtAsm.cpp770 if (!isTokenStringLiteral() && Tok.isNot(tok::l_square)) in ParseAsmOperandsOpt()
775 if (Tok.is(tok::l_square)) { in ParseAsmOperandsOpt()
776 BalancedDelimiterTracker T(*this, tok::l_square); in ParseAsmOperandsOpt()
DParseDeclCXX.cpp1099 case tok::l_square: // void f(struct f [ 3]) in isValidAfterTypeSpecifier()
1491 } else if (isCXX11FinalKeyword() && (NextToken().is(tok::l_square) || in ParseClassSpecifier()
1502 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) { in ParseClassSpecifier()
3736 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square) in ParseCXX11AttributeSpecifier()
3842 if (Tok.is(tok::l_square)) { in SkipCXX11Attributes()
3843 BalancedDelimiterTracker T(*this, tok::l_square); in SkipCXX11Attributes()
3870 assert(Tok.is(tok::l_square) && "Not a Microsoft attribute list"); in ParseMicrosoftAttributes()
3874 BalancedDelimiterTracker T(*this, tok::l_square); in ParseMicrosoftAttributes()
3880 } while (Tok.is(tok::l_square)); in ParseMicrosoftAttributes()
DParseDecl.cpp1330 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square)); in DiagnoseProhibitedCXX11Attribute()
1361 assert((Tok.is(tok::l_square) && NextToken().is(tok::l_square)) || in DiagnoseMisplacedCXX11Attribute()
1563 case tok::l_square: // Might be an attribute on an unnamed bit-field. in MightBeDeclarator()
1565 NextToken().is(tok::l_square); in MightBeDeclarator()
1582 case tok::l_square: in MightBeDeclarator()
1627 case tok::l_square: in SkipMalformedDecl()
2196 return T.isOneOf(tok::l_square, tok::l_paren, tok::r_paren, tok::semi, in isValidAfterIdentifierInDeclarator()
2346 case tok::l_square: in ParseImplicitInt()
2675 case tok::l_square: in ParseDeclarationSpecifiers()
4650 case tok::l_square: in isConstructorDeclarator()
[all …]
DParseExpr.cpp1311 case tok::l_square: in ParseCastExpression()
1391 case tok::l_square: { // postfix-expression: p-e '[' expression ']' in ParsePostfixExpressionSuffix()
1407 BalancedDelimiterTracker T(*this, tok::l_square); in ParsePostfixExpressionSuffix()
1972 } else if (Tok.is(tok::l_square)) { in ParseBuiltinPrimaryExpression()
1979 BalancedDelimiterTracker ST(*this, tok::l_square); in ParseBuiltinPrimaryExpression()
DParseCXXInlineMethods.cpp690 case tok::l_square: in ConsumeAndStoreUntil()
1150 case tok::l_square: in ConsumeAndStoreInitializer()
DParseStmt.cpp122 WantTypeSpecifiers = nextTok.isOneOf(tok::l_paren, tok::less, tok::l_square, in StatementFilterCCC()
1440 if (Next.isOneOf(tok::l_square, tok::kw_alignas)) { in isForRangeIdentifier()
DParseObjc.cpp2778 case tok::l_square: in ParseObjCAtExpression()
2918 assert(Tok.is(tok::l_square) && getLangOpts().ObjC1 && in isSimpleObjCMessageExpression()
2963 assert(Tok.is(tok::l_square) && "'[' expected"); in ParseObjCMessageExpression()
/external/clang/lib/Format/
DTokenAnnotator.cpp191 (CurrentToken->Next->is(tok::l_square) && in parseParens()
268 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
285 tok::l_square, tok::question, tok::colon, in parseSquare()
294 ScopedContextCreator ContextCreator(*this, tok::l_square, BindingIncrease); in parseSquare()
449 Contexts.back().ContextKind == tok::l_square || // array type in consumeToken()
524 case tok::l_square: in consumeToken()
939 (!Current.Previous || Current.Previous->isNot(tok::l_square))) { in determineTokenType()
1170 if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace, in determineStarAmpUsage()
1177 if (NextToken->is(tok::l_square) && NextToken->isNot(TT_LambdaLSquare)) in determineStarAmpUsage()
1226 if (PrevToken->isOneOf(tok::equal, tok::l_paren, tok::comma, tok::l_square, in determinePlusMinusCaretUsage()
[all …]
DUnwrappedLineParser.cpp630 Tok.isNot(tok::l_square) && in tokenCanStartNewLine()
962 case tok::l_square: in parseStructuralElement()
990 assert(FormatTok->is(tok::l_square)); in tryToParseLambda()
1145 case tok::l_square: in parseBracedList()
1200 case tok::l_square: in parseParens()
1227 assert(FormatTok->Tok.is(tok::l_square) && "'[' expected."); in parseSquare()
1241 case tok::l_square: in parseSquare()
DFormatToken.h322 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square, in opensScope()
DWhitespaceManager.cpp251 Changes[i].Kind == tok::l_square) { in AlignTokens()
DContinuationIndenter.cpp978 if (NextNonComment && NextNonComment->isNot(tok::l_square)) in moveStatePastScopeCloser()
/external/llvm/lib/TableGen/
DTGLexer.h36 l_square, r_square, // [ ] enumerator
DTGLexer.cpp436 return tgtok::l_square; in LexBracket()
DTGParser.cpp1307 case tgtok::l_square: { // Value ::= '[' ValueList ']' in ParseSimpleValue()
1502 case tgtok::l_square: { in ParseValue()
1770 case tgtok::l_square: { // '[' ValueList ']' in ParseForeachDeclaration()
/external/clang/include/clang/Parse/
DParser.h327 return Tok.getKind() == tok::l_square || Tok.getKind() == tok::r_square; in isTokenBracket()
391 if (Tok.getKind() == tok::l_square) in ConsumeBracket()
1419 return (K == tok::l_square || K == tok::l_paren || in isPostfixExpressionSuffixStart()
2043 assert(Tok.is(tok::l_square)); in CheckProhibitedCXX11Attribute()
2044 if (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square)) in CheckProhibitedCXX11Attribute()
2053 if ((Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) && in CheckMisplacedCXX11Attribute()
2163 if (getLangOpts().MicrosoftExt && Tok.is(tok::l_square))
/external/clang/unittests/Lex/
DLexerTest.cpp267 ExpectedTokens.push_back(tok::l_square); in TEST_F()
270 ExpectedTokens.push_back(tok::l_square); in TEST_F()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp101 ASSERT_EQ(tok::l_square, toks[0].getKind()); in TEST_F()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp1133 tok::l_square, tok::l_square, PP.getIdentifierInfo("clang"), in DiagnoseSwitchLabelsFallthrough()
/external/clang/lib/Lex/
DLexer.cpp3208 Kind = tok::l_square; in LexTokenInternal()
3436 Kind = tok::l_square; in LexTokenInternal()
/external/clang/include/clang/Basic/
DTokenKinds.def160 PUNCTUATOR(l_square, "[")

12