Home
last modified time | relevance | path

Searched refs:l_square (Results 1 – 25 of 27) 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.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()
DParseExprCXX.cpp83 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 …]
DRAIIObjectsForParser.h368 case tok::l_square: return P.BracketCount; in getDepth()
396 case tok::l_square:
DParseStmtAsm.cpp711 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()
DParseDeclCXX.cpp1115 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()
DParseDecl.cpp1208 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 …]
DParseExpr.cpp1148 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()
DParseCXXInlineMethods.cpp591 case tok::l_square: in ConsumeAndStoreUntil()
1048 case tok::l_square: in ConsumeAndStoreInitializer()
DParseStmt.cpp124 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()
DParseObjc.cpp2144 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()
DParser.cpp288 case tok::l_square: in SkipUntil()
/external/clang/lib/Format/
DTokenAnnotator.cpp172 (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 …]
DUnwrappedLineParser.cpp596 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()
DFormatToken.h316 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square) || in opensScope()
DContinuationIndenter.cpp786 Left->isOneOf(tok::l_brace, tok::l_square) && in fakeRParenSpecialCase()
878 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.cpp1300 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/
DParser.h332 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/
DLexerTest.cpp268 ExpectedTokens.push_back(tok::l_square); in TEST_F()
271 ExpectedTokens.push_back(tok::l_square); in TEST_F()
/external/clang/unittests/Basic/
DSourceManagerTest.cpp102 ASSERT_EQ(tok::l_square, toks[0].getKind()); in TEST_F()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp1128 tok::l_square, tok::l_square, PP.getIdentifierInfo("clang"), in DiagnoseSwitchLabelsFallthrough()
/external/clang/lib/Lex/
DLexer.cpp3202 Kind = tok::l_square; in LexTokenInternal()
3430 Kind = tok::l_square; in LexTokenInternal()
/external/clang/include/clang/Basic/
DTokenKinds.def151 PUNCTUATOR(l_square, "[")

12