/external/clang/lib/Parse/ |
D | ParseInit.cpp | 35 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()
|
D | ParseTentative.cpp | 182 while (Tok.is(tok::l_square) || Tok.is(tok::kw___attribute) || in TryConsumeDeclarationSpecifier() 184 if (Tok.is(tok::l_square)) { in TryConsumeDeclarationSpecifier() 503 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() 872 } else if (Tok.is(tok::l_square)) { in TryParseDeclarator() 901 case tok::l_square: in isExpressionOrTypeSpecifierSimple() 1582 Next.is(tok::l_square) || isCXX11VirtSpecifier(Next) || in isCXXFunctionDeclarator()
|
D | ParseExprCXX.cpp | 83 if (!Next.is(tok::l_square) || Next.getLength() != 2) in CheckForTemplateAndDigraph() 690 && Tok.is(tok::l_square) in TryParseLambdaExpression() 738 assert(Tok.is(tok::l_square) && "Lambda expressions begin with '['."); in ParseLambdaIntroducer() 739 BalancedDelimiterTracker T(*this, tok::l_square); in ParseLambdaIntroducer() 1101 (Tok.is(tok::l_square) && NextToken().is(tok::l_square))) { in ParseLambdaExpressionAfterIntroducer() 1109 case tok::l_square: TokKind = 2; break; in ParseLambdaExpressionAfterIntroducer() 1219 if (Tok.is(tok::l_square) && Tok.getLength() == 2) { in ParseCXXCasts() 2098 if (Tok.is(tok::l_square) && in ParseUnqualifiedIdOperator() 2099 (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square))) { in ParseUnqualifiedIdOperator() 2101 BalancedDelimiterTracker T(*this, tok::l_square); in ParseUnqualifiedIdOperator() [all …]
|
D | RAIIObjectsForParser.h | 368 case tok::l_square: return P.BracketCount; in getDepth() 396 case tok::l_square:
|
D | ParseStmtAsm.cpp | 711 if (!isTokenStringLiteral() && Tok.isNot(tok::l_square)) in ParseAsmOperandsOpt() 716 if (Tok.is(tok::l_square)) { in ParseAsmOperandsOpt() 717 BalancedDelimiterTracker T(*this, tok::l_square); in ParseAsmOperandsOpt()
|
D | ParseDeclCXX.cpp | 1115 case tok::l_square: // enum E [[]] x in isValidAfterTypeSpecifier() 1117 return getLangOpts().CPlusPlus11 && NextToken().is(tok::l_square); in isValidAfterTypeSpecifier() 1375 } else if (isCXX11FinalKeyword() && (NextToken().is(tok::l_square) || in ParseClassSpecifier() 1386 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) { in ParseClassSpecifier() 3315 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square) in ParseCXX11AttributeSpecifier() 3421 if (Tok.is(tok::l_square)) { in SkipCXX11Attributes() 3422 BalancedDelimiterTracker T(*this, tok::l_square); in SkipCXX11Attributes() 3449 assert(Tok.is(tok::l_square) && "Not a Microsoft attribute list"); in ParseMicrosoftAttributes() 3451 while (Tok.is(tok::l_square)) { in ParseMicrosoftAttributes()
|
D | ParseDecl.cpp | 1208 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square)); in DiagnoseProhibitedCXX11Attribute() 1239 assert((Tok.is(tok::l_square) && NextToken().is(tok::l_square)) || in DiagnoseMisplacedCXX11Attribute() 1404 case tok::l_square: // Might be an attribute on an unnamed bit-field. in MightBeDeclarator() 1406 NextToken().is(tok::l_square); in MightBeDeclarator() 1423 case tok::l_square: in MightBeDeclarator() 1468 case tok::l_square: in SkipMalformedDecl() 2006 return T.is(tok::l_square) || T.is(tok::l_paren) || T.is(tok::r_paren) || in isValidAfterIdentifierInDeclarator() 2157 case tok::l_square: in ParseImplicitInt() 2471 case tok::l_square: in ParseDeclarationSpecifiers() 4313 case tok::l_square: in isConstructorDeclarator() [all …]
|
D | ParseExpr.cpp | 1148 case tok::l_square: in ParseCastExpression() 1228 case tok::l_square: { // postfix-expression: p-e '[' expression ']' in ParsePostfixExpressionSuffix() 1244 BalancedDelimiterTracker T(*this, tok::l_square); in ParsePostfixExpressionSuffix() 1763 } else if (Tok.is(tok::l_square)) { in ParseBuiltinPrimaryExpression() 1770 BalancedDelimiterTracker ST(*this, tok::l_square); in ParseBuiltinPrimaryExpression()
|
D | ParseCXXInlineMethods.cpp | 591 case tok::l_square: in ConsumeAndStoreUntil() 1048 case tok::l_square: in ConsumeAndStoreInitializer()
|
D | ParseStmt.cpp | 124 nextTok.is(tok::amp) || nextTok.is(tok::l_square); in StatementFilterCCC() 1416 if (Next.is(tok::l_square) || Next.is(tok::kw_alignas)) { in isForRangeIdentifier()
|
D | ParseObjc.cpp | 2144 case tok::l_square: in ParseObjCAtExpression() 2281 assert(Tok.is(tok::l_square) && getLangOpts().ObjC1 && in isSimpleObjCMessageExpression() 2326 assert(Tok.is(tok::l_square) && "'[' expected"); in ParseObjCMessageExpression()
|
D | Parser.cpp | 288 case tok::l_square: in SkipUntil()
|
/external/clang/lib/Format/ |
D | TokenAnnotator.cpp | 172 (CurrentToken->Next->is(tok::l_square) && in parseParens() 232 (!Parent || Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare() 237 ScopedContextCreator ContextCreator(*this, tok::l_square, 10); in parseSquare() 436 case tok::l_square: in consumeToken() 765 Current.Previous->isNot(tok::l_square))) { in determineTokenType() 911 if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace, in determineStarAmpUsage() 919 if (NextToken->is(tok::l_square) && NextToken->Type != TT_LambdaLSquare) in determineStarAmpUsage() 962 if (PrevToken->isOneOf(tok::equal, tok::l_paren, tok::comma, tok::l_square, in determinePlusMinusCaretUsage() 1354 if (Right.is(tok::l_square)) { in splitPenalty() 1504 if (Left.is(tok::l_square) && Right.is(tok::amp)) in spaceRequiredBetween() [all …]
|
D | UnwrappedLineParser.cpp | 596 Tok.isNot(tok::l_square) && in tokenCanStartNewLine() 809 case tok::l_square: in parseStructuralElement() 829 assert(FormatTok->is(tok::l_square)); in tryToParseLambda() 961 case tok::l_square: in parseBracedList() 1004 case tok::l_square: in parseParens() 1026 assert(FormatTok->Tok.is(tok::l_square) && "'[' expected."); in parseSquare() 1040 case tok::l_square: in parseSquare()
|
D | FormatToken.h | 316 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square) || in opensScope()
|
D | ContinuationIndenter.cpp | 786 Left->isOneOf(tok::l_brace, tok::l_square) && in fakeRParenSpecialCase() 878 if (NextNonComment && NextNonComment->isNot(tok::l_square)) in moveStatePastScopeCloser()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.h | 36 l_square, r_square, // [ ] enumerator
|
D | TGLexer.cpp | 436 return tgtok::l_square; in LexBracket()
|
D | TGParser.cpp | 1300 case tgtok::l_square: { // Value ::= '[' ValueList ']' in ParseSimpleValue() 1499 case tgtok::l_square: { in ParseValue() 1765 case tgtok::l_square: { // '[' ValueList ']' in ParseForeachDeclaration()
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 332 return Tok.getKind() == tok::l_square || Tok.getKind() == tok::r_square; in isTokenBracket() 387 if (Tok.getKind() == tok::l_square) in ConsumeBracket() 1357 return (K == tok::l_square || K == tok::l_paren || in isPostfixExpressionSuffixStart() 1983 assert(Tok.is(tok::l_square)); in CheckProhibitedCXX11Attribute() 1984 if (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square)) in CheckProhibitedCXX11Attribute() 1993 if ((Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) && in CheckMisplacedCXX11Attribute() 2100 if (getLangOpts().MicrosoftExt && Tok.is(tok::l_square))
|
/external/clang/unittests/Lex/ |
D | LexerTest.cpp | 268 ExpectedTokens.push_back(tok::l_square); in TEST_F() 271 ExpectedTokens.push_back(tok::l_square); in TEST_F()
|
/external/clang/unittests/Basic/ |
D | SourceManagerTest.cpp | 102 ASSERT_EQ(tok::l_square, toks[0].getKind()); in TEST_F()
|
/external/clang/lib/Sema/ |
D | AnalysisBasedWarnings.cpp | 1128 tok::l_square, tok::l_square, PP.getIdentifierInfo("clang"), in DiagnoseSwitchLabelsFallthrough()
|
/external/clang/lib/Lex/ |
D | Lexer.cpp | 3202 Kind = tok::l_square; in LexTokenInternal() 3430 Kind = tok::l_square; in LexTokenInternal()
|
/external/clang/include/clang/Basic/ |
D | TokenKinds.def | 151 PUNCTUATOR(l_square, "[")
|