Home
last modified time | relevance | path

Searched refs:l_brace (Results 1 – 21 of 21) sorted by relevance

/external/clang/lib/Parse/
DParseCXXInlineMethods.cpp33 assert((Tok.is(tok::l_brace) || Tok.is(tok::colon) || Tok.is(tok::kw_try) || in ParseCXXInlineMethodDef()
166 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false); in ParseCXXInlineMethodDef()
187 assert((Tok.is(tok::l_brace) || Tok.is(tok::equal)) && in ParseCXXNonStaticMemberInitializer()
201 if (kind == tok::l_brace) { in ParseCXXNonStaticMemberInitializer()
325 if (getLangOpts().CPlusPlus0x && Tok.is(tok::l_brace)) { in ParseLexedMethodDeclaration()
395 assert((Tok.is(tok::l_brace) || Tok.is(tok::colon) || Tok.is(tok::kw_try)) in ParseLexedMethodDef()
418 if (!Tok.is(tok::l_brace)) { in ParseLexedMethodDef()
557 case tok::l_brace: in ConsumeAndStoreUntil()
637 if (!ConsumeAndStoreUntil(tok::l_paren, tok::l_brace, Toks, in ConsumeAndStoreFunctionPrologue()
650 assert(kind == tok::l_brace && "Must be left paren or brace here."); in ConsumeAndStoreFunctionPrologue()
[all …]
DParseStmt.cpp151 Next.is(tok::identifier) || Next.is(tok::l_brace); in ParseStatementOrDeclarationAfterAttributes()
192 case tok::l_brace: // C99 6.8.2: compound-statement in ParseStatementOrDeclarationAfterAttributes()
322 if(Tok.isNot(tok::l_brace)) in ParseSEHTryBlockCommon()
664 assert(Tok.is(tok::l_brace) && "Not a compount stmt!"); in ParseCompoundStatement()
683 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseCompoundStatementBody()
916 C99orCXX && Tok.isNot(tok::l_brace)); in ParseIfStatement()
949 C99orCXX && Tok.isNot(tok::l_brace)); in ParseIfStatement()
1037 if (Tok.is(tok::l_brace)) { in ParseSwitchStatement()
1057 C99orCXX && Tok.isNot(tok::l_brace)); in ParseSwitchStatement()
1135 C99orCXX && Tok.isNot(tok::l_brace)); in ParseWhileStatement()
[all …]
DParseDeclCXX.cpp99 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseNamespace()
287 Tok.is(tok::l_brace) ? Tok.getLocation() in ParseLinkage()
294 if (Tok.isNot(tok::l_brace)) { in ParseLinkage()
310 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseLinkage()
1224 else if (Tok.is(tok::l_brace) || in ParseClassSpecifier()
1227 (NextToken().is(tok::l_brace) || NextToken().is(tok::colon)))) { in ParseClassSpecifier()
1434 assert(Tok.is(tok::l_brace) || in ParseClassSpecifier()
1503 SkipUntil(tok::comma, tok::l_brace, true, true); in ParseBaseClause()
1932 if (Tok.is(tok::l_brace) && !getLangOpts().CPlusPlus0x) { in ParseCXXClassMemberDeclaration()
1935 if (Tok.is(tok::l_brace) || Tok.is(tok::colon) || Tok.is(tok::kw_try)) { in ParseCXXClassMemberDeclaration()
[all …]
DParseObjc.cpp239 if (Tok.is(tok::l_brace)) in ParseObjCAtInterfaceDeclaration()
282 if (Tok.is(tok::l_brace)) in ParseObjCAtInterfaceDeclaration()
1250 assert(Tok.is(tok::l_brace) && "expected {"); in ParseObjCClassInstanceVariables()
1256 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseObjCClassInstanceVariables()
1524 if (Tok.is(tok::l_brace)) // we have ivars in ParseObjCAtImplementationDeclaration()
1760 SkipUntil(tok::l_brace, true, true); in ParseObjCSynchronizedStmt()
1764 if (Tok.isNot(tok::l_brace)) { in ParseObjCSynchronizedStmt()
1805 if (Tok.isNot(tok::l_brace)) { in ParseObjCTryStmt()
1853 if (Tok.is(tok::l_brace)) in ParseObjCTryStmt()
1879 if (Tok.is(tok::l_brace)) in ParseObjCTryStmt()
[all …]
DParseExpr.cpp364 if (getLangOpts().CPlusPlus0x && Tok.is(tok::l_brace)) { in ParseRHSOfBinaryExpression()
797 Next.is(tok::l_brace)) { in ParseCastExpression()
1080 (!getLangOpts().CPlusPlus0x || Tok.isNot(tok::l_brace))) in ParseCastExpression()
1084 if (Tok.is(tok::l_brace)) in ParseCastExpression()
1363 if (getLangOpts().CPlusPlus0x && Tok.is(tok::l_brace)) { in ParsePostfixExpressionSuffix()
2000 if (ExprType >= CompoundStmt && Tok.is(tok::l_brace)) { in ParseParenExpression()
2087 if (Tok.is(tok::l_brace)) { in ParseParenExpression()
2187 assert(Tok.is(tok::l_brace) && "Not a compound literal!"); in ParseCompoundLiteralExpression()
2357 if (getLangOpts().CPlusPlus0x && Tok.is(tok::l_brace)) { in ParseExpressionList()
2462 } else if (!Tok.is(tok::l_brace)) { in ParseBlockLiteralExpression()
[all …]
DRAIIObjectsForParser.h367 case tok::l_brace: return P.BraceCount; in getDepth()
386 case tok::l_brace: in BalancedDelimiterTracker()
DParseTentative.cpp298 else if (getLangOpts().CPlusPlus0x && Tok.is(tok::l_brace)) in isCXXConditionDeclaration()
1204 bool isFollowedByBrace = Tok.is(tok::l_brace); in isCXXDeclarationSpecifier()
1246 if (getLangOpts().CPlusPlus0x && NextToken().is(tok::l_brace)) in isCXXDeclarationSpecifier()
1263 bool isFollowedByBrace = Tok.is(tok::l_brace); in isCXXDeclarationSpecifier()
1389 Next.is(tok::l_brace) || Next.is(tok::kw_try) || in isCXXFunctionDeclarator()
DParser.cpp309 case tok::l_brace: in SkipUntil()
794 if (Tok.is(tok::l_brace)) // int X() {} in isStartOfFunctionDefinition()
943 if (Tok.isNot(tok::l_brace) && in ParseFunctionDefinition()
950 SkipUntil(tok::l_brace, true, true); in ParseFunctionDefinition()
953 if (Tok.isNot(tok::l_brace)) in ParseFunctionDefinition()
1007 (Tok.is(tok::l_brace) || Tok.is(tok::kw_try) || in ParseFunctionDefinition()
1091 if (!Tok.is(tok::l_brace)) { in ParseFunctionDefinition()
1811 BalancedDelimiterTracker Braces(*this, tok::l_brace); in ParseMicrosoftIfExistsExternalDeclaration()
DParseInit.cpp402 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseBraceInitializer()
494 BalancedDelimiterTracker Braces(*this, tok::l_brace); in ParseMicrosoftIfExistsBraceInitializer()
DParseDecl.cpp1280 case tok::l_brace: in MightBeDeclarator()
1315 case tok::l_brace: in SkipMalformedDecl()
1320 if (Tok.is(tok::comma) || Tok.is(tok::l_brace) || Tok.is(tok::kw_try)) { in SkipMalformedDecl()
1453 if (Tok.is(tok::l_brace)) in ParseDeclGroup()
1699 } else if (getLangOpts().CPlusPlus0x && Tok.is(tok::l_brace) && in ParseDeclarationAfterDeclaratorAndAttributes()
1805 T.is(tok::kw_asm) || T.is(tok::l_brace) || T.is(tok::colon); in isValidAfterIdentifierInDeclarator()
1921 case tok::l_brace: in ParseImplicitInt()
2921 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseStructUnionBody()
3121 if (Tok.isNot(tok::l_brace)) { in ParseEnumSpecifier()
3131 if (Tok.isNot(tok::identifier) && Tok.isNot(tok::l_brace) && in ParseEnumSpecifier()
[all …]
DParseExprCXX.cpp566 SkipUntil(tok::l_brace); in ParseLambdaExpression()
886 if (!Tok.is(tok::l_brace)) { in ParseLambdaExpressionAfterIntroducer()
1238 (getLangOpts().CPlusPlus0x && Tok.is(tok::l_brace))) in ParseCXXTypeConstructExpression()
1241 if (Tok.is(tok::l_brace)) { in ParseCXXTypeConstructExpression()
1366 if (getLangOpts().CPlusPlus0x && Tok.is(tok::l_brace)) { in ParseCXXCondition()
2306 } else if (Tok.is(tok::l_brace) && getLangOpts().CPlusPlus0x) { in ParseCXXNewExpression()
2749 if (Tok.is(tok::l_brace)) { in ParseCXXAmbiguousParenExpression()
DParseTemplate.cpp1310 assert((Tok.is(tok::l_brace) || Tok.is(tok::colon) || Tok.is(tok::kw_try)) in ParseLateTemplatedFuncDef()
1336 if (Tok.is(tok::l_brace)) { in ParseLateTemplatedFuncDef()
1366 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false); in LexTemplateFunctionForLateParsing()
/external/llvm/lib/TableGen/
DTGLexer.h36 l_brace, r_brace, // { } enumerator
DTGParser.cpp395 case tgtok::l_brace: in ParseObjectName()
654 if (Lex.getCode() != tgtok::l_brace) in ParseOptionalBitList()
1238 case tgtok::l_brace: { // Value ::= '{' ValueList '}' in ParseSimpleValue()
1436 case tgtok::l_brace: { in ParseValue()
1518 case tgtok::l_brace: in ParseValue()
1741 case tgtok::l_brace: { // '{' RangeList '}' in ParseForeachDeclaration()
1867 if (Lex.getCode() != tgtok::l_brace) in ParseBody()
2013 if (Lex.getCode() != tgtok::l_brace) { in ParseForeach()
2137 if (Lex.getCode() != tgtok::l_brace) { in ParseTopLevelLet()
2212 if (Lex.getCode() != tgtok::l_brace) { in ParseMultiClass()
DTGLexer.cpp110 case '{': return tgtok::l_brace; in LexToken()
/external/bison/tests/
Dexisting.at112 : l_brace statements r_brace opt_semi opt_nls
113 | l_brace r_brace opt_semi opt_nls
130 : l_brace statements r_brace opt_semi opt_nls
131 | l_brace r_brace opt_semi opt_nls
148 | l_brace r_brace
149 | l_brace statements r_brace
326 l_brace
Dtestsuite55006 : l_brace statements r_brace opt_semi opt_nls
55007 | l_brace r_brace opt_semi opt_nls
55024 : l_brace statements r_brace opt_semi opt_nls
55025 | l_brace r_brace opt_semi opt_nls
55042 | l_brace r_brace
55043 | l_brace statements r_brace
55220 l_brace
/external/clang/include/clang/Parse/
DParser.h304 return Tok.getKind() == tok::l_brace || Tok.getKind() == tok::r_brace; in isTokenBrace()
385 if (Tok.getKind() == tok::l_brace) in ConsumeBrace()
1378 if (Tok.isNot(tok::l_brace)) in ParseInitializer()
/external/clang/include/clang/Basic/
DTokenKinds.def143 PUNCTUATOR(l_brace, "{")
/external/clang/lib/Lex/
DLexer.cpp2869 Kind = tok::l_brace; in LexTokenInternal()
3097 Kind = tok::l_brace; in LexTokenInternal()
DModuleMap.cpp595 case tok::l_brace: in consumeToken()