Home
last modified time | relevance | path

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

/external/clang/lib/Parse/
DParseInit.cpp35 case tok::l_square: { // designator: array-designator in MayBeDesignationStart()
183 while (Tok.is(tok::period) || Tok.is(tok::l_square)) { in ParseInitializerWithPotentialDesignator()
200 assert(Tok.is(tok::l_square) && "Unexpected token!"); in ParseInitializerWithPotentialDesignator()
221 BalancedDelimiterTracker T(*this, tok::l_square); in ParseInitializerWithPotentialDesignator()
DParseExprCXX.cpp79 if (!Next.is(tok::l_square) || Next.getLength() != 2) in CheckForTemplateAndDigraph()
624 && Tok.is(tok::l_square) in TryParseLambdaExpression()
664 assert(Tok.is(tok::l_square) && "Lambda expressions begin with '['."); in ParseLambdaIntroducer()
665 BalancedDelimiterTracker T(*this, tok::l_square); in ParseLambdaIntroducer()
981 if (Tok.is(tok::l_square) && Tok.getLength() == 2) { in ParseCXXCasts()
1855 if (Tok.is(tok::l_square) && in ParseUnqualifiedIdOperator()
1856 (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square))) { in ParseUnqualifiedIdOperator()
1858 BalancedDelimiterTracker T(*this, tok::l_square); in ParseUnqualifiedIdOperator()
1895 case tok::l_square: { in ParseUnqualifiedIdOperator()
1897 BalancedDelimiterTracker T(*this, tok::l_square); in ParseUnqualifiedIdOperator()
[all …]
DRAIIObjectsForParser.h368 case tok::l_square: return P.BracketCount; in getDepth()
395 case tok::l_square: in BalancedDelimiterTracker()
DParseTentative.cpp435 if (Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) in isCXX11AttributeSpecifier()
702 } else if (Tok.is(tok::l_square)) { in TryParseDeclarator()
731 case tok::l_square: in isExpressionOrTypeSpecifierSimple()
1401 Next.is(tok::l_square) || isCXX11VirtSpecifier(Next) || in isCXXFunctionDeclarator()
DParseDeclCXX.cpp1016 case tok::l_square: // enum E [[]] x in isValidAfterTypeSpecifier()
1018 return getLangOpts().CPlusPlus11 && NextToken().is(tok::l_square); in isValidAfterTypeSpecifier()
1296 } else if (isCXX11FinalKeyword() && (NextToken().is(tok::l_square) || in ParseClassSpecifier()
1307 if (Tok.is(tok::l_square) && NextToken().is(tok::l_square)) { in ParseClassSpecifier()
3095 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square) in ParseCXX11AttributeSpecifier()
3212 assert(Tok.is(tok::l_square) && "Not a Microsoft attribute list"); in ParseMicrosoftAttributes()
3214 while (Tok.is(tok::l_square)) { in ParseMicrosoftAttributes()
DParseDecl.cpp1151 assert(Tok.is(tok::l_square) && NextToken().is(tok::l_square)); in DiagnoseProhibitedCXX11Attribute()
1182 assert((Tok.is(tok::l_square) && NextToken().is(tok::l_square)) || in DiagnoseMisplacedCXX11Attribute()
1341 case tok::l_square: // Might be an attribute on an unnamed bit-field. in MightBeDeclarator()
1343 NextToken().is(tok::l_square); in MightBeDeclarator()
1360 case tok::l_square: in MightBeDeclarator()
1406 case tok::l_square: in SkipMalformedDecl()
1883 return T.is(tok::l_square) || T.is(tok::l_paren) || T.is(tok::r_paren) || in isValidAfterIdentifierInDeclarator()
2003 case tok::l_square: in ParseImplicitInt()
2224 case tok::l_square: in ParseDeclarationSpecifiers()
4066 case tok::l_square: in isConstructorDeclarator()
[all …]
DParseExpr.cpp1231 case tok::l_square: in ParseCastExpression()
1311 case tok::l_square: { // postfix-expression: p-e '[' expression ']' in ParsePostfixExpressionSuffix()
1327 BalancedDelimiterTracker T(*this, tok::l_square); in ParsePostfixExpressionSuffix()
1807 } else if (Tok.is(tok::l_square)) { in ParseBuiltinPrimaryExpression()
1814 BalancedDelimiterTracker ST(*this, tok::l_square); in ParseBuiltinPrimaryExpression()
DParseStmt.cpp145 Next.is(tok::amp) || Next.is(tok::l_square); in ParseStatementOrDeclarationAfterAttributes()
1921 if (!isTokenStringLiteral() && Tok.isNot(tok::l_square)) in ParseAsmOperandsOpt()
1926 if (Tok.is(tok::l_square)) { in ParseAsmOperandsOpt()
1927 BalancedDelimiterTracker T(*this, tok::l_square); in ParseAsmOperandsOpt()
DParseCXXInlineMethods.cpp570 case tok::l_square: in ConsumeAndStoreUntil()
DParseObjc.cpp2098 case tok::l_square: in ParseObjCAtExpression()
2235 assert(Tok.is(tok::l_square) && getLangOpts().ObjC1 && in isSimpleObjCMessageExpression()
2280 assert(Tok.is(tok::l_square) && "'[' expected"); in ParseObjCMessageExpression()
DParser.cpp285 case tok::l_square: in SkipUntil()
/external/clang/lib/Format/
DTokenAnnotator.cpp80 return Tok.isOneOf(tok::l_paren, tok::l_brace, tok::l_square) || in opensScope()
202 (!Parent || Parent->isOneOf(tok::colon, tok::l_square, tok::l_paren, in parseSquare()
208 ScopedContextCreator ContextCreator(*this, tok::l_square, 10); in parseSquare()
365 case tok::l_square: in consumeToken()
672 if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace, in determineStarAmpUsage()
679 if (NextToken->is(tok::l_square)) in determineStarAmpUsage()
685 NextToken->isOneOf(tok::l_paren, tok::l_square)) in determineStarAmpUsage()
702 if (PrevToken->isOneOf(tok::equal, tok::l_paren, tok::comma, tok::l_square, in determinePlusMinusCaretUsage()
995 if (Left.is(tok::l_square)) in spaceRequiredBetween()
999 if (Right.is(tok::l_square) && Right.Type != TT_ObjCMethodExpr) in spaceRequiredBetween()
[all …]
DFormat.cpp653 (Previous.isOneOf(tok::l_paren, tok::l_square, tok::l_brace) || in addTokenToState()
695 if (Current.isOneOf(tok::l_paren, tok::l_square, tok::l_brace) || in moveStateToNextToken()
716 if (Current.is(tok::l_square) && Current.Type == TT_ObjCMethodExpr && in moveStateToNextToken()
/external/clang/unittests/Lex/
DLexerTest.cpp102 ASSERT_EQ(tok::l_square, toks[0].getKind()); in TEST_F()
105 ASSERT_EQ(tok::l_square, toks[3].getKind()); in TEST_F()
/external/llvm/lib/TableGen/
DTGLexer.h36 l_square, r_square, // [ ] enumerator
DTGLexer.cpp436 return tgtok::l_square; in LexBracket()
DTGParser.cpp1264 case tgtok::l_square: { // Value ::= '[' ValueList ']' in ParseSimpleValue()
1461 case tgtok::l_square: { in ParseValue()
1717 case tgtok::l_square: { // '[' ValueList ']' in ParseForeachDeclaration()
/external/clang/include/clang/Parse/
DParser.h272 return Tok.getKind() == tok::l_square || Tok.getKind() == tok::r_square; in isTokenBracket()
322 if (Tok.getKind() == tok::l_square) in ConsumeBracket()
1222 return (K == tok::l_square || K == tok::l_paren || in isPostfixExpressionSuffixStart()
1808 assert(Tok.is(tok::l_square)); in CheckProhibitedCXX11Attribute()
1809 if (!getLangOpts().CPlusPlus11 || NextToken().isNot(tok::l_square)) in CheckProhibitedCXX11Attribute()
1818 if ((Tok.isNot(tok::l_square) || NextToken().isNot(tok::l_square)) && in CheckMisplacedCXX11Attribute()
1897 if (getLangOpts().MicrosoftExt && Tok.is(tok::l_square))
/external/clang/unittests/Basic/
DSourceManagerTest.cpp95 ASSERT_EQ(tok::l_square, toks[0].getKind()); in TEST_F()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp916 tok::l_square, tok::l_square, PP.getIdentifierInfo("clang"), in DiagnoseSwitchLabelsFallthrough()
/external/clang/include/clang/Basic/
DTokenKinds.def139 PUNCTUATOR(l_square, "[")
/external/clang/lib/Lex/
DLexer.cpp3020 Kind = tok::l_square; in LexTokenInternal()
3242 Kind = tok::l_square; in LexTokenInternal()
DModuleMap.cpp803 case tok::l_square: in consumeToken()