Home
last modified time | relevance | path

Searched refs:l_square (Results 1 – 25 of 32) 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.cpp183 while (Tok.isOneOf(tok::l_square, tok::kw___attribute, tok::kw___declspec, in TryConsumeDeclarationSpecifier()
185 if (Tok.is(tok::l_square)) { in TryConsumeDeclarationSpecifier()
580 if (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) in isCXX11AttributeSpecifier()
739 if (Tok.is(tok::l_square) && NextToken().is(tok::r_square)) { in TryParseOperatorId()
752 case tok::l_square: in TryParseOperatorId()
937 } else if (Tok.is(tok::l_square)) { in TryParseDeclarator()
967 case tok::l_square: in isExpressionOrTypeSpecifierSimple()
1679 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()
790 assert(Tok.is(tok::l_square) && "Lambda expressions begin with '['."); in ParseLambdaIntroducer()
791 BalancedDelimiterTracker T(*this, tok::l_square); in ParseLambdaIntroducer()
1232 (Tok.is(tok::l_square) && NextToken().is(tok::l_square))) { in ParseLambdaExpressionAfterIntroducer()
1240 case tok::l_square: TokKind = 2; break; in ParseLambdaExpressionAfterIntroducer()
1352 if (Tok.is(tok::l_square) && Tok.getLength() == 2) { in ParseCXXCasts()
2251 if (Tok.is(tok::l_square) && in ParseUnqualifiedIdOperator()
2252 (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square))) { in ParseUnqualifiedIdOperator()
2254 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.cpp815 if (!isTokenStringLiteral() && Tok.isNot(tok::l_square)) in ParseAsmOperandsOpt()
820 if (Tok.is(tok::l_square)) { in ParseAsmOperandsOpt()
821 BalancedDelimiterTracker T(*this, tok::l_square); in ParseAsmOperandsOpt()
DParseDecl.cpp1361 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square)); in DiagnoseProhibitedCXX11Attribute()
1392 assert((Tok.is(tok::l_square) && NextToken().is(tok::l_square)) || in DiagnoseMisplacedCXX11Attribute()
1599 case tok::l_square: // Might be an attribute on an unnamed bit-field. in MightBeDeclarator()
1601 NextToken().is(tok::l_square); in MightBeDeclarator()
1618 case tok::l_square: in MightBeDeclarator()
1663 case tok::l_square: in SkipMalformedDecl()
2233 return T.isOneOf(tok::l_square, tok::l_paren, tok::r_paren, tok::semi, in isValidAfterIdentifierInDeclarator()
2401 case tok::l_square: in ParseImplicitInt()
2730 case tok::l_square: in ParseDeclarationSpecifiers()
4730 case tok::l_square: in isConstructorDeclarator()
[all …]
DParseDeclCXX.cpp1098 case tok::l_square: // void f(struct f [ 3]) in isValidAfterTypeSpecifier()
1506 } else if (isCXX11FinalKeyword() && (NextToken().is(tok::l_square) || in ParseClassSpecifier()
1517 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) { in ParseClassSpecifier()
3766 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square) in ParseCXX11AttributeSpecifier()
3899 if (Tok.is(tok::l_square)) { in SkipCXX11Attributes()
3900 BalancedDelimiterTracker T(*this, tok::l_square); in SkipCXX11Attributes()
3927 assert(Tok.is(tok::l_square) && "Not a Microsoft attribute list"); in ParseMicrosoftAttributes()
3931 BalancedDelimiterTracker T(*this, tok::l_square); in ParseMicrosoftAttributes()
3937 } while (Tok.is(tok::l_square)); in ParseMicrosoftAttributes()
DParseExpr.cpp1338 case tok::l_square: in ParseCastExpression()
1433 case tok::l_square: { // postfix-expression: p-e '[' expression ']' in ParsePostfixExpressionSuffix()
1451 BalancedDelimiterTracker T(*this, tok::l_square); in ParsePostfixExpressionSuffix()
2020 } else if (Tok.is(tok::l_square)) { in ParseBuiltinPrimaryExpression()
2027 BalancedDelimiterTracker ST(*this, tok::l_square); in ParseBuiltinPrimaryExpression()
DParseCXXInlineMethods.cpp699 case tok::l_square: in ConsumeAndStoreUntil()
1159 case tok::l_square: in ConsumeAndStoreInitializer()
DParseStmt.cpp129 WantTypeSpecifiers = nextTok.isOneOf(tok::l_paren, tok::less, tok::l_square, in StatementFilterCCC()
1481 if (Next.isOneOf(tok::l_square, tok::kw_alignas)) { in isForRangeIdentifier()
/external/clang/lib/Format/
DTokenAnnotator.cpp225 (CurrentToken->Next->is(tok::l_square) && Line.MustBeDeclaration))) in parseParens()
313 Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
331 tok::comma, tok::l_paren, tok::l_square, in parseSquare()
342 ScopedContextCreator ContextCreator(*this, tok::l_square, BindingIncrease); in parseSquare()
498 Contexts.back().ContextKind == tok::l_square || // array type in consumeToken()
584 case tok::l_square: in consumeToken()
1020 (!Current.Previous || Current.Previous->isNot(tok::l_square))) { in determineTokenType()
1254 if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace, in determineStarAmpUsage()
1261 if (NextToken->is(tok::l_square) && NextToken->isNot(TT_LambdaLSquare)) in determineStarAmpUsage()
1310 if (PrevToken->isOneOf(tok::equal, tok::l_paren, tok::comma, tok::l_square, in determinePlusMinusCaretUsage()
[all …]
DUnwrappedLineParser.cpp370 tok::l_square, tok::l_paren, tok::ellipsis) || in calculateBraceTypes()
644 Tok.isNot(tok::l_square) && in tokenCanStartNewLine()
1104 case tok::l_square: in parseStructuralElement()
1130 assert(FormatTok->is(tok::l_square)); in tryToParseLambda()
1295 case tok::l_square: in parseBracedList()
1358 case tok::l_square: in parseParens()
1386 assert(FormatTok->Tok.is(tok::l_square) && "'[' expected."); in parseSquare()
1400 case tok::l_square: in parseSquare()
DFormatToken.h337 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square, in opensScope()
DWhitespaceManager.cpp263 Changes[i].Kind == tok::l_square) { in AlignTokens()
DFormatTokenLexer.cpp145 tok::r_brace, tok::l_square, tok::semi, tok::exclaim, in precedesOperand()
DContinuationIndenter.cpp356 Previous.isOneOf(tok::l_paren, TT_TemplateOpener, tok::l_square) && in addTokenOnCurrentLine()
1029 if (NextNonComment && NextNonComment->isNot(tok::l_square)) in moveStatePastScopeCloser()
/external/swiftshader/third_party/LLVM/lib/TableGen/
DTGLexer.h35 l_square, r_square, // [ ] enumerator
DTGLexer.cpp386 return tgtok::l_square; in LexBracket()
/external/llvm/lib/TableGen/
DTGLexer.h36 l_square, r_square, // [ ] enumerator
DTGLexer.cpp436 return tgtok::l_square; in LexBracket()
DTGParser.cpp1302 case tgtok::l_square: { // Value ::= '[' ValueList ']' in ParseSimpleValue()
1497 case tgtok::l_square: { in ParseValue()
1765 case tgtok::l_square: { // '[' ValueList ']' in ParseForeachDeclaration()
/external/clang/include/clang/Parse/
DParser.h333 return Tok.getKind() == tok::l_square || Tok.getKind() == tok::r_square; in isTokenBracket()
397 if (Tok.getKind() == tok::l_square) in ConsumeBracket()
1441 return (K == tok::l_square || K == tok::l_paren || in isPostfixExpressionSuffixStart()
2082 assert(Tok.is(tok::l_square)); in CheckProhibitedCXX11Attribute()
2083 if (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square)) in CheckProhibitedCXX11Attribute()
2092 if ((Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) && in CheckMisplacedCXX11Attribute()
2202 if (getLangOpts().MicrosoftExt && Tok.is(tok::l_square))
/external/clang/unittests/Lex/
DLexerTest.cpp272 ExpectedTokens.push_back(tok::l_square); in TEST_F()
275 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.cpp1077 tok::l_square, tok::l_square, in getFallthroughAttrSpelling()
1083 tok::l_square, tok::l_square, PP.getIdentifierInfo("clang"), in getFallthroughAttrSpelling()

12