/external/clang/lib/Format/ |
D | UnwrappedLineParser.cpp | 167 case tok::l_brace: in parseLevel() 195 assert(FormatTok.Tok.is(tok::l_brace) && "'{' expected"); in parseBlock() 266 assert(!FormatTok.Tok.is(tok::l_brace)); in parseStructuralElement() 271 if (FormatTok.Tok.is(tok::l_brace)) { in parseStructuralElement() 340 if (FormatTok.Tok.is(tok::l_brace)) { in parseStructuralElement() 356 if (FormatTok.Tok.is(tok::l_brace)) in parseStructuralElement() 379 case tok::l_brace: in parseStructuralElement() 396 if (FormatTok.Tok.is(tok::l_brace)) { in parseStructuralElement() 412 case tok::l_brace: in parseBracedList() 430 case tok::l_brace: in parseReturn() [all …]
|
D | TokenAnnotator.cpp | 80 return Tok.isOneOf(tok::l_paren, tok::l_brace, tok::l_square) || in opensScope() 259 ScopedContextCreator ContextCreator(*this, tok::l_brace, 1); in parseBrace() 369 case tok::l_brace: in consumeToken() 632 Current.Children[0].isOneOf(tok::equal, tok::semi, tok::l_brace); in determineTokenType() 672 if (PrevToken->isOneOf(tok::l_paren, tok::l_square, tok::l_brace, in determineStarAmpUsage() 704 tok::kw_case, tok::at, tok::l_brace)) in determinePlusMinusCaretUsage() 900 if (Left.is(tok::equal) && Right.is(tok::l_brace)) in splitPenalty() 977 tok::numeric_constant, tok::l_paren, tok::l_brace, in spaceRequiredBetween() 1018 if (Left.is(tok::l_brace) && Right.is(tok::r_brace)) in spaceRequiredBetween() 1123 return !Right.isOneOf(tok::l_brace, tok::semi, tok::equal); in canBreakBefore() [all …]
|
D | Format.cpp | 597 if (Previous.is(tok::l_brace)) in addTokenToState() 603 if ((Previous.isNot(tok::l_paren) && Previous.isNot(tok::l_brace)) || in addTokenToState() 631 (Previous.isOneOf(tok::l_paren, tok::l_brace) || in addTokenToState() 653 (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() 699 if (Current.is(tok::l_brace)) { in moveStateToNextToken() 1344 if (I->Last->is(tok::l_brace)) { in tryFitMultipleLinesInOne() 1428 if (Tok->isOneOf(tok::l_brace, tok::r_brace)) in tryMergeSimpleBlock()
|
/external/clang/lib/Parse/ |
D | ParseCXXInlineMethods.cpp | 40 assert((Tok.is(tok::l_brace) || Tok.is(tok::colon) || Tok.is(tok::kw_try) || in ParseCXXInlineMethodDef() 169 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false); in ParseCXXInlineMethodDef() 203 assert((Tok.is(tok::l_brace) || Tok.is(tok::equal)) && in ParseCXXNonStaticMemberInitializer() 217 if (kind == tok::l_brace) { in ParseCXXNonStaticMemberInitializer() 341 if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) { in ParseLexedMethodDeclaration() 411 assert((Tok.is(tok::l_brace) || Tok.is(tok::colon) || Tok.is(tok::kw_try)) in ParseLexedMethodDef() 434 if (!Tok.is(tok::l_brace)) { in ParseLexedMethodDef() 576 case tok::l_brace: in ConsumeAndStoreUntil() 656 if (!ConsumeAndStoreUntil(tok::l_paren, tok::l_brace, Toks, in ConsumeAndStoreFunctionPrologue() 669 assert(kind == tok::l_brace && "Must be left paren or brace here."); in ConsumeAndStoreFunctionPrologue() [all …]
|
D | ParseStmt.cpp | 151 Next.is(tok::identifier) || Next.is(tok::l_brace); in ParseStatementOrDeclarationAfterAttributes() 192 case tok::l_brace: // C99 6.8.2: compound-statement in ParseStatementOrDeclarationAfterAttributes() 357 if(Tok.isNot(tok::l_brace)) in ParseSEHTryBlockCommon() 699 assert(Tok.is(tok::l_brace) && "Not a compount stmt!"); in ParseCompoundStatement() 765 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseCompoundStatementBody() 996 C99orCXX && Tok.isNot(tok::l_brace)); in ParseIfStatement() 1029 C99orCXX && Tok.isNot(tok::l_brace)); in ParseIfStatement() 1112 if (Tok.is(tok::l_brace)) { in ParseSwitchStatement() 1132 C99orCXX && Tok.isNot(tok::l_brace)); in ParseSwitchStatement() 1210 C99orCXX && Tok.isNot(tok::l_brace)); in ParseWhileStatement() [all …]
|
D | ParseObjc.cpp | 241 if (Tok.is(tok::l_brace)) in ParseObjCAtInterfaceDeclaration() 284 if (Tok.is(tok::l_brace)) in ParseObjCAtInterfaceDeclaration() 1255 assert(Tok.is(tok::l_brace) && "expected {"); in ParseObjCClassInstanceVariables() 1261 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseObjCClassInstanceVariables() 1529 if (Tok.is(tok::l_brace)) // we have ivars in ParseObjCAtImplementationDeclaration() 1765 SkipUntil(tok::l_brace, true, true); in ParseObjCSynchronizedStmt() 1769 if (Tok.isNot(tok::l_brace)) { in ParseObjCSynchronizedStmt() 1810 if (Tok.isNot(tok::l_brace)) { in ParseObjCTryStmt() 1858 if (Tok.is(tok::l_brace)) in ParseObjCTryStmt() 1884 if (Tok.is(tok::l_brace)) in ParseObjCTryStmt() [all …]
|
D | ParseDeclCXX.cpp | 107 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseNamespace() 295 Tok.is(tok::l_brace) ? Tok.getLocation() in ParseLinkage() 302 if (Tok.isNot(tok::l_brace)) { in ParseLinkage() 318 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseLinkage() 1278 else if (Tok.is(tok::l_brace) || in ParseClassSpecifier() 1281 (NextToken().is(tok::l_brace) || NextToken().is(tok::colon)))) { in ParseClassSpecifier() 1321 if (Tok.is(tok::l_brace) || Tok.is(tok::colon)) in ParseClassSpecifier() 1536 assert(Tok.is(tok::l_brace) || in ParseClassSpecifier() 1608 SkipUntil(tok::comma, tok::l_brace, true, true); in ParseBaseClause() 2063 if (Tok.is(tok::l_brace) && !getLangOpts().CPlusPlus11) { in ParseCXXClassMemberDeclaration() [all …]
|
D | ParseExpr.cpp | 209 if (K == tok::l_brace || K == tok::r_brace || in isNotExpressionStart() 325 if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) { in ParseRHSOfBinaryExpression() 756 Next.is(tok::l_brace)) { in ParseCastExpression() 1047 (!getLangOpts().CPlusPlus11 || Tok.isNot(tok::l_brace))) in ParseCastExpression() 1051 if (Tok.is(tok::l_brace)) in ParseCastExpression() 1331 if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) { in ParsePostfixExpressionSuffix() 1972 if (ExprType >= CompoundStmt && Tok.is(tok::l_brace)) { in ParseParenExpression() 2059 if (Tok.is(tok::l_brace)) { in ParseParenExpression() 2159 assert(Tok.is(tok::l_brace) && "Not a compound literal!"); in ParseCompoundLiteralExpression() 2329 if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) { in ParseExpressionList() [all …]
|
D | RAIIObjectsForParser.h | 367 case tok::l_brace: return P.BraceCount; in getDepth() 386 case tok::l_brace: in BalancedDelimiterTracker()
|
D | ParseTentative.cpp | 298 else if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) in isCXXConditionDeclaration() 1217 bool isFollowedByBrace = Tok.is(tok::l_brace); in isCXXDeclarationSpecifier() 1259 if (getLangOpts().CPlusPlus11 && NextToken().is(tok::l_brace)) in isCXXDeclarationSpecifier() 1276 bool isFollowedByBrace = Tok.is(tok::l_brace); in isCXXDeclarationSpecifier() 1402 Next.is(tok::l_brace) || Next.is(tok::kw_try) || in isCXXFunctionDeclarator()
|
D | Parser.cpp | 290 case tok::l_brace: in SkipUntil() 783 if (Tok.is(tok::l_brace)) // int X() {} in isStartOfFunctionDefinition() 932 if (Tok.isNot(tok::l_brace) && in ParseFunctionDefinition() 939 SkipUntil(tok::l_brace, true, true); in ParseFunctionDefinition() 942 if (Tok.isNot(tok::l_brace)) in ParseFunctionDefinition() 997 (Tok.is(tok::l_brace) || Tok.is(tok::kw_try) || in ParseFunctionDefinition() 1081 if (!Tok.is(tok::l_brace)) { in ParseFunctionDefinition() 1803 BalancedDelimiterTracker Braces(*this, tok::l_brace); in ParseMicrosoftIfExistsExternalDeclaration()
|
D | ParseInit.cpp | 402 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseBraceInitializer() 494 BalancedDelimiterTracker Braces(*this, tok::l_brace); in ParseMicrosoftIfExistsBraceInitializer()
|
D | ParseDecl.cpp | 1358 case tok::l_brace: in MightBeDeclarator() 1393 case tok::l_brace: in SkipMalformedDecl() 1398 if (Tok.is(tok::comma) || Tok.is(tok::l_brace) || Tok.is(tok::kw_try)) { in SkipMalformedDecl() 1532 if (Tok.is(tok::l_brace)) in ParseDeclGroup() 1779 } else if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace) && in ParseDeclarationAfterDeclaratorAndAttributes() 1885 T.is(tok::kw_asm) || T.is(tok::l_brace) || T.is(tok::colon); in isValidAfterIdentifierInDeclarator() 2002 case tok::l_brace: in ParseImplicitInt() 3061 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseStructUnionBody() 3261 if (Tok.isNot(tok::l_brace)) { in ParseEnumSpecifier() 3271 if (Tok.isNot(tok::identifier) && Tok.isNot(tok::l_brace) && in ParseEnumSpecifier() [all …]
|
D | ParseExprCXX.cpp | 609 SkipUntil(tok::l_brace); in ParseLambdaExpression() 939 if (!Tok.is(tok::l_brace)) { in ParseLambdaExpressionAfterIntroducer() 1292 (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace))) in ParseCXXTypeConstructExpression() 1295 if (Tok.is(tok::l_brace)) { in ParseCXXTypeConstructExpression() 1421 if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) { in ParseCXXCondition() 2366 } else if (Tok.is(tok::l_brace) && getLangOpts().CPlusPlus11) { in ParseCXXNewExpression() 2810 if (Tok.is(tok::l_brace)) { in ParseCXXAmbiguousParenExpression()
|
D | ParseTemplate.cpp | 1309 assert((Tok.is(tok::l_brace) || Tok.is(tok::colon) || Tok.is(tok::kw_try)) in ParseLateTemplatedFuncDef() 1335 if (Tok.is(tok::l_brace)) { in ParseLateTemplatedFuncDef() 1365 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false); in LexTemplateFunctionForLateParsing()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.h | 37 l_brace, r_brace, // { } enumerator
|
D | TGParser.cpp | 398 case tgtok::l_brace: in ParseObjectName() 647 if (Lex.getCode() != tgtok::l_brace) in ParseOptionalBitList() 1236 case tgtok::l_brace: { // Value ::= '{' ValueList '}' in ParseSimpleValue() 1435 case tgtok::l_brace: { in ParseValue() 1517 case tgtok::l_brace: in ParseValue() 1740 case tgtok::l_brace: { // '{' RangeList '}' in ParseForeachDeclaration() 1866 if (Lex.getCode() != tgtok::l_brace) in ParseBody() 2025 if (Lex.getCode() != tgtok::l_brace) { in ParseForeach() 2149 if (Lex.getCode() != tgtok::l_brace) { in ParseTopLevelLet() 2229 if (Lex.getCode() != tgtok::l_brace) { in ParseMultiClass()
|
D | TGLexer.cpp | 109 case '{': return tgtok::l_brace; in LexToken()
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 276 return Tok.getKind() == tok::l_brace || Tok.getKind() == tok::r_brace; in isTokenBrace() 336 if (Tok.getKind() == tok::l_brace) in ConsumeBrace() 1385 if (Tok.isNot(tok::l_brace)) in ParseInitializer()
|
/external/bison/tests/ |
D | existing.at | 156 : l_brace statements r_brace opt_semi opt_nls 157 | l_brace r_brace opt_semi opt_nls 174 : l_brace statements r_brace opt_semi opt_nls 175 | l_brace r_brace opt_semi opt_nls 192 | l_brace r_brace 193 | l_brace statements r_brace 370 l_brace
|
/external/clang/include/clang/Basic/ |
D | TokenKinds.def | 143 PUNCTUATOR(l_brace, "{")
|
/external/clang/lib/Lex/ |
D | Lexer.cpp | 3032 Kind = tok::l_brace; in LexTokenInternal() 3245 Kind = tok::l_brace; in LexTokenInternal()
|
D | ModuleMap.cpp | 799 case tok::l_brace: in consumeToken()
|