/external/clang/lib/Format/ |
D | UnwrappedLineParser.cpp | 272 kind = tok::l_brace; in parseLevel() 282 case tok::l_brace: in parseLevel() 323 assert(Tok->Tok.is(tok::l_brace)); in calculateBraceTypes() 334 case tok::l_brace: in calculateBraceTypes() 369 tok::r_paren, tok::r_square, tok::l_brace, in calculateBraceTypes() 414 assert(FormatTok->isOneOf(tok::l_brace, TT_MacroBlockBegin) && in parseBlock() 643 return Tok.isNot(tok::semi) && Tok.isNot(tok::l_brace) && in tokenCanStartNewLine() 746 assert(!FormatTok->is(tok::l_brace)); in parseStructuralElement() 758 if (FormatTok->Tok.is(tok::l_brace)) { in parseStructuralElement() 782 if (FormatTok->Tok.is(tok::l_brace)) { in parseStructuralElement() [all …]
|
D | TokenAnnotator.cpp | 230 if (CurrentToken->Next && CurrentToken->Next->is(tok::l_brace) && in parseParens() 270 if (CurrentToken->is(tok::l_brace)) in parseParens() 311 CurrentToken->isNot(tok::l_brace) && in parseSquare() 325 Contexts.back().ContextKind == tok::l_brace && in parseSquare() 326 Parent->isOneOf(tok::l_brace, tok::comma)) { in parseSquare() 406 ScopedContextCreator ContextCreator(*this, tok::l_brace, 1); in parseBrace() 421 if (CurrentToken->isOneOf(tok::colon, tok::l_brace)) { in parseBrace() 442 if (Current->is(tok::l_brace) && Current->BlockKind == BK_Block) in updateParameterCount() 588 case tok::l_brace: in consumeToken() 1038 !Current.Next->isOneOf(tok::semi, tok::colon, tok::l_brace, in determineTokenType() [all …]
|
D | FormatToken.cpp | 84 if (!LBrace || !LBrace->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) || in formatAfterToken() 149 !Token->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare)) in precomputeFormattingInfos() 187 if (ItemBegin->is(tok::l_brace)) in precomputeFormattingInfos() 227 if (Token->NestingLevel != 0 && Token->is(tok::l_brace) && Commas.size() < 19) in precomputeFormattingInfos()
|
D | ContinuationIndenter.cpp | 108 if (!Current.MustBreakBefore && Previous.is(tok::l_brace) && in canBreak() 111 Previous.Previous->isOneOf(tok::l_brace, tok::l_paren, tok::comma)) in canBreak() 118 if (Previous.opensScope() && Previous.isNot(tok::l_brace) && in canBreak() 127 if (Previous.is(tok::l_brace) && State.Stack.size() > 1 && in canBreak() 167 if (((Previous.is(TT_DictLiteral) && Previous.is(tok::l_brace)) || in mustBreak() 265 Previous.is(tok::l_brace) && !Current.isOneOf(tok::r_brace, tok::comment)) in mustBreak() 579 (PreviousNonComment->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare))) in addTokenOnNewLine() 586 if (!Previous.isOneOf(tok::l_paren, tok::l_brace, TT_BinaryOperator) || in addTokenOnNewLine() 616 if (NextNonComment->is(tok::l_brace) && NextNonComment->BlockKind == BK_Block) in getNewLineColumn() 776 Previous->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) && in moveStateToNextToken() [all …]
|
D | UnwrappedLineFormatter.cpp | 25 NextNext && NextNext->is(tok::l_brace); in startsExternCBlock() 201 if (TheLine->Last->is(tok::l_brace)) { in tryFitMultipleLinesInOne() 267 (I[1]->First->is(tok::l_brace) && !Style.AllowShortBlocksOnASingleLine)) in tryMergeSimpleControlStatement() 384 if (Tok->is(tok::l_brace) && Tok->BlockKind != BK_BracedInit) in tryMergeSimpleBlock() 513 if (!LBrace || LBrace->isNot(tok::l_brace) || in formatChildren() 931 PreviousLine->Last->is(tok::l_brace) && in formatFirstToken()
|
D | FormatToken.h | 337 return isOneOf(tok::l_paren, tok::l_brace, tok::l_square, in opensScope() 432 (is(tok::l_brace) && in opensBlockOrBlockTypeList()
|
/external/clang/lib/Parse/ |
D | ParseCXXInlineMethods.cpp | 32 assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try, tok::equal) && in ParseCXXInlineMethodDef() 163 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false); in ParseCXXInlineMethodDef() 198 assert(Tok.isOneOf(tok::l_brace, tok::equal) && in ParseCXXNonStaticMemberInitializer() 212 if (kind == tok::l_brace) { in ParseCXXNonStaticMemberInitializer() 351 if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) { in ParseLexedMethodDeclaration() 518 assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try) in ParseLexedMethodDef() 540 if (!Tok.is(tok::l_brace)) { in ParseLexedMethodDef() 705 case tok::l_brace: in ConsumeAndStoreUntil() 781 ConsumeAndStoreUntil(tok::l_brace, tok::r_brace, Toks, in ConsumeAndStoreFunctionPrologue() 784 if (Tok.isNot(tok::l_brace)) in ConsumeAndStoreFunctionPrologue() [all …]
|
D | ParseStmt.cpp | 134 nextTok.isOneOf(tok::l_paren, tok::semi, tok::identifier, tok::l_brace); in StatementFilterCCC() 233 case tok::l_brace: // C99 6.8.2: compound-statement in ParseStatementOrDeclarationAfterAttributes() 442 if (Tok.isNot(tok::l_brace)) in ParseSEHTryBlock() 443 return StmtError(Diag(Tok, diag::err_expected) << tok::l_brace); in ParseSEHTryBlock() 512 if (Tok.isNot(tok::l_brace)) in ParseSEHExceptBlock() 513 return StmtError(Diag(Tok, diag::err_expected) << tok::l_brace); in ParseSEHExceptBlock() 533 if (Tok.isNot(tok::l_brace)) in ParseSEHFinallyBlock() 534 return StmtError(Diag(Tok, diag::err_expected) << tok::l_brace); in ParseSEHFinallyBlock() 859 assert(Tok.is(tok::l_brace) && "Not a compount stmt!"); in ParseCompoundStatement() 937 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseCompoundStatementBody() [all …]
|
D | ParseDeclCXX.cpp | 123 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseNamespace() 126 Diag(Tok, diag::err_expected) << tok::l_brace; in ParseNamespace() 128 Diag(Tok, diag::err_expected_either) << tok::identifier << tok::l_brace; in ParseNamespace() 309 Tok.is(tok::l_brace) ? Tok.getLocation() : SourceLocation()); in ParseLinkage() 315 if (Tok.isNot(tok::l_brace)) { in ParseLinkage() 332 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseLinkage() 1488 else if (Tok.is(tok::l_brace) || in ParseClassSpecifier() 1491 (NextToken().is(tok::l_brace) || NextToken().is(tok::colon)))) { in ParseClassSpecifier() 1531 if (Tok.isOneOf(tok::l_brace, tok::colon)) in ParseClassSpecifier() 1768 assert(Tok.is(tok::l_brace) || in ParseClassSpecifier() [all …]
|
D | ParseObjc.cpp | 307 if (Tok.is(tok::l_brace)) in ParseObjCAtInterfaceDeclaration() 383 if (Tok.is(tok::l_brace)) in ParseObjCAtInterfaceDeclaration() 556 tok::minus, tok::plus, tok::colon, tok::l_paren, tok::l_brace, in parseObjCTypeParamListOrProtocolRefs() 1924 assert(Tok.is(tok::l_brace) && "expected {"); in ParseObjCClassInstanceVariables() 1930 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseObjCClassInstanceVariables() 2217 if (Tok.is(tok::l_brace)) // we have ivars in ParseObjCAtImplementationDeclaration() 2492 SkipUntil(tok::l_brace, StopAtSemi | StopBeforeMatch); in ParseObjCSynchronizedStmt() 2496 if (Tok.isNot(tok::l_brace)) { in ParseObjCSynchronizedStmt() 2498 Diag(Tok, diag::err_expected) << tok::l_brace; in ParseObjCSynchronizedStmt() 2537 if (Tok.isNot(tok::l_brace)) { in ParseObjCTryStmt() [all …]
|
D | ParseInit.cpp | 392 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseBraceInitializer() 486 BalancedDelimiterTracker Braces(*this, tok::l_brace); in ParseMicrosoftIfExistsBraceInitializer() 488 Diag(Tok, diag::err_expected) << tok::l_brace; in ParseMicrosoftIfExistsBraceInitializer()
|
D | Parser.cpp | 317 case tok::l_brace: in SkipUntil() 839 if (Tok.is(tok::l_brace)) // int X() {} in isStartOfFunctionDefinition() 1003 if (Tok.isNot(tok::l_brace) && in ParseFunctionDefinition() 1010 SkipUntil(tok::l_brace, StopAtSemi | StopBeforeMatch); in ParseFunctionDefinition() 1013 if (Tok.isNot(tok::l_brace)) in ParseFunctionDefinition() 1065 (Tok.is(tok::l_brace) || Tok.is(tok::kw_try) || in ParseFunctionDefinition() 1161 if (!Tok.is(tok::l_brace)) { in ParseFunctionDefinition() 1192 SkipUntil(tok::l_brace); in SkipFunctionBody() 1302 if (SkipUntil(tok::l_brace, StopAtSemi | StopBeforeMatch)) in ParseKNRParamDeclarations() 1967 BalancedDelimiterTracker Braces(*this, tok::l_brace); in ParseMicrosoftIfExistsExternalDeclaration() [all …]
|
D | ParseTentative.cpp | 302 } else if (Tok.is(tok::l_brace)) { in TryParseInitDeclaratorList() 435 (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace))) { in isCXXConditionDeclarationOrInitStatement() 1084 tok::l_brace, tok::identifier); in TentativeParseCCC() 1469 bool isFollowedByBrace = Tok.is(tok::l_brace); in isCXXDeclarationSpecifier() 1510 if (getLangOpts().CPlusPlus11 && NextToken().is(tok::l_brace)) in isCXXDeclarationSpecifier() 1527 bool isFollowedByBrace = Tok.is(tok::l_brace); in isCXXDeclarationSpecifier() 1680 tok::l_brace, tok::kw_try, tok::equal, tok::arrow) || in isCXXFunctionDeclarator()
|
D | ParseStmtAsm.cpp | 395 if (Tok.is(tok::l_brace)) { in ParseMicrosoftAsmStatement() 417 if (!InAsmComment && Tok.is(tok::l_brace)) { in ParseMicrosoftAsmStatement() 456 if (PP.LookAhead(0).is(tok::l_brace)) in ParseMicrosoftAsmStatement() 514 Diag(LBraceLocs.back(), diag::note_matching) << tok::l_brace; in ParseMicrosoftAsmStatement() 520 Diag(Tok, diag::err_expected) << tok::l_brace; in ParseMicrosoftAsmStatement()
|
D | ParseExpr.cpp | 230 if (K == tok::l_brace || K == tok::r_brace || in isNotExpressionStart() 364 if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) { in ParseRHSOfBinaryExpression() 868 tok::l_brace)) { in ParseCastExpression() 1206 (!getLangOpts().CPlusPlus11 || Tok.isNot(tok::l_brace))) in ParseCastExpression() 1210 if (Tok.is(tok::l_brace)) in ParseCastExpression() 1456 if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) { in ParsePostfixExpressionSuffix() 2226 if (ExprType >= CompoundStmt && Tok.is(tok::l_brace)) { in ParseParenExpression() 2332 if (Tok.is(tok::l_brace)) { in ParseParenExpression() 2450 assert(Tok.is(tok::l_brace) && "Not a compound literal!"); in ParseCompoundLiteralExpression() 2670 if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace)) { in ParseExpressionList() [all …]
|
D | ParseExprCXX.cpp | 231 if (NextKind == tok::l_brace) { in ParseOptionalCXXScopeSpecifier() 449 if (Next.is(tok::coloncolon) && GetLookAheadToken(2).is(tok::l_brace)) { in ParseOptionalCXXScopeSpecifier() 724 SkipUntil(tok::l_brace, StopAtSemi); in ParseLambdaExpression() 909 } else if (Tok.isOneOf(tok::l_brace, tok::equal)) { in ParseLambdaIntroducer() 923 } else if (Tok.is(tok::l_brace)) { in ParseLambdaIntroducer() 924 BalancedDelimiterTracker Braces(*this, tok::l_brace); in ParseLambdaIntroducer() 1310 if (!Tok.is(tok::l_brace)) { in ParseLambdaExpressionAfterIntroducer() 1639 ExprResult Expr = Tok.is(tok::l_brace) ? ParseBraceInitializer() in ParseCoyieldExpression() 1675 (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace))) in ParseCXXTypeConstructExpression() 1678 if (Tok.is(tok::l_brace)) { in ParseCXXTypeConstructExpression() [all …]
|
D | RAIIObjectsForParser.h | 373 case tok::l_brace: return P.BraceCount; in getDepth() 393 case tok::l_brace:
|
D | ParseDecl.cpp | 1616 case tok::l_brace: in MightBeDeclarator() 1651 case tok::l_brace: in SkipMalformedDecl() 1656 if (Tok.isOneOf(tok::comma, tok::l_brace, tok::kw_try)) { in SkipMalformedDecl() 1762 Fixit &= Tok.isOneOf(tok::semi, tok::l_brace, tok::kw_try); in ParseDeclGroup() 1808 if (Tok.is(tok::l_brace)) { in ParseDeclGroup() 1829 if (Tok.is(tok::l_brace)) in ParseDeclGroup() 2130 } else if (getLangOpts().CPlusPlus11 && Tok.is(tok::l_brace) && in ParseDeclarationAfterDeclaratorAndAttributes() 2234 tok::comma, tok::equal, tok::kw_asm, tok::l_brace, in isValidAfterIdentifierInDeclarator() 2400 case tok::l_brace: in ParseImplicitInt() 3669 BalancedDelimiterTracker T(*this, tok::l_brace); in ParseStructUnionBody() [all …]
|
D | ParseTemplate.cpp | 1378 assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try) && in ParseLateTemplatedFuncDef() 1399 if (Tok.is(tok::l_brace)) { in ParseLateTemplatedFuncDef() 1431 ConsumeAndStoreUntil(tok::l_brace, Toks, /*StopAtSemi=*/false); in LexTemplateFunctionForLateParsing()
|
/external/swiftshader/third_party/LLVM/lib/TableGen/ |
D | TGLexer.h | 36 l_brace, r_brace, // { } enumerator
|
D | TGParser.cpp | 551 if (Lex.getCode() != tgtok::l_brace) in ParseOptionalBitList() 1118 case tgtok::l_brace: { // Value ::= '{' ValueList '}' in ParseSimpleValue() 1316 case tgtok::l_brace: { in ParseValue() 1609 if (Lex.getCode() != tgtok::l_brace) in ParseBody() 1819 if (Lex.getCode() != tgtok::l_brace) { in ParseTopLevelLet() 1894 if (Lex.getCode() != tgtok::l_brace) { in ParseMultiClass()
|
/external/llvm/lib/TableGen/ |
D | TGParser.cpp | 381 case tgtok::l_brace: in ParseObjectName() 629 if (Lex.getCode() != tgtok::l_brace) in ParseOptionalBitList() 1251 case tgtok::l_brace: { // Value ::= '{' ValueList '}' in ParseSimpleValue() 1471 case tgtok::l_brace: { in ParseValue() 1553 case tgtok::l_brace: in ParseValue() 1788 case tgtok::l_brace: { // '{' RangeList '}' in ParseForeachDeclaration() 1914 if (Lex.getCode() != tgtok::l_brace) in ParseBody() 2073 if (Lex.getCode() != tgtok::l_brace) { in ParseForeach() 2198 if (Lex.getCode() != tgtok::l_brace) { in ParseTopLevelLet() 2281 if (Lex.getCode() != tgtok::l_brace) { in ParseMultiClass()
|
D | TGLexer.h | 37 l_brace, r_brace, // { } enumerator
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/ |
D | TGParser.cpp | 499 case tgtok::l_brace: in ParseObjectName() 751 if (Lex.getCode() != tgtok::l_brace) in ParseOptionalBitList() 1731 case tgtok::l_brace: { // Value ::= '{' ValueList '}' in ParseSimpleValue() 1961 case tgtok::l_brace: { in ParseValue() 2054 case tgtok::l_brace: in ParseValue() 2288 case tgtok::l_brace: { // '{' RangeList '}' in ParseForeachDeclaration() 2438 if (Lex.getCode() != tgtok::l_brace) in ParseBody() 2563 if (Lex.Lex() != tgtok::l_brace) // Eat the '=' in ParseDefset() 2610 if (Lex.getCode() != tgtok::l_brace) { in ParseForeach() 2743 if (Lex.getCode() != tgtok::l_brace) { in ParseTopLevelLet() [all …]
|
D | TGLexer.h | 37 l_brace, r_brace, // { } enumerator
|