/external/clang/lib/Parse/ |
D | ParseInit.cpp | 400 if (Tok.is(tok::r_brace)) { in ParseBraceInitializer() 418 if (Tok.is(tok::r_brace)) break; in ParseBraceInitializer() 452 SkipUntil(tok::r_brace, StopBeforeMatch); in ParseBraceInitializer() 464 if (Tok.is(tok::r_brace)) break; in ParseBraceInitializer() 531 if (Tok.is(tok::r_brace)) in ParseMicrosoftIfExistsBraceInitializer()
|
D | ParseCXXInlineMethods.cpp | 157 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); in ParseCXXInlineMethodDef() 164 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); in ParseCXXInlineMethodDef() 218 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/true); in ParseCXXNonStaticMemberInitializer() 709 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreUntil() 729 case tok::r_brace: in ConsumeAndStoreUntil() 781 ConsumeAndStoreUntil(tok::l_brace, tok::r_brace, Toks, in ConsumeAndStoreFunctionPrologue() 896 tok::TokenKind CloseKind = IsLParen ? tok::r_paren : tok::r_brace; in ConsumeAndStoreFunctionPrologue() 1169 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); in ConsumeAndStoreInitializer() 1192 case tok::r_brace: in ConsumeAndStoreInitializer()
|
D | ParseStmt.cpp | 197 SkipUntil(tok::r_brace, StopAtSemi | StopBeforeMatch); in ParseStatementOrDeclarationAfterAttributes() 220 if (Tok.is(tok::r_brace)) { in ParseStatementOrDeclarationAfterAttributes() 390 SkipUntil(tok::r_brace, StopAtSemi | StopBeforeMatch); in ParseStatementOrDeclarationAfterAttributes() 407 SkipUntil(tok::r_brace, StopAtSemi | StopBeforeMatch); in ParseExprStatement() 687 if (SkipUntil(tok::colon, tok::r_brace, StopAtSemi | StopBeforeMatch)) { in ParseCaseStatement() 705 if (SkipUntil(tok::colon, tok::r_brace, StopAtSemi | StopBeforeMatch)) { in ParseCaseStatement() 758 if (Tok.isNot(tok::r_brace)) { in ParseCaseStatement() 811 if (Tok.isNot(tok::r_brace)) { in ParseDefaultStatement() 978 while (!tryParseMisplacedModuleImport() && Tok.isNot(tok::r_brace) && in ParseCompoundStatementBody() 1301 SkipUntil(tok::r_brace); in ParseSwitchStatement() [all …]
|
D | Parser.cpp | 321 SkipUntil(tok::r_brace, StopAtCodeCompletion); in SkipUntil() 323 SkipUntil(tok::r_brace); in SkipUntil() 341 case tok::r_brace: in SkipUntil() 685 case tok::r_brace: in ParseExternalDeclaration() 1190 SkipUntil(tok::r_brace); in SkipFunctionBody() 1193 SkipUntil(tok::r_brace); in SkipFunctionBody() 1988 while (Tok.isNot(tok::r_brace) && !isEofOrEom()) { in ParseMicrosoftIfExistsExternalDeclaration() 2112 if (P.Tok.isNot(tok::r_paren) && P.Tok.isNot(tok::r_brace) && in diagnoseMissingClose()
|
D | ParseDeclCXX.cpp | 136 SkipUntil(tok::r_brace); in ParseNamespace() 149 SkipUntil(tok::r_brace, StopBeforeMatch); in ParseNamespace() 153 if (!rBraceToken.is(tok::r_brace)) { in ParseNamespace() 216 while (!tryParseMisplacedModuleImport() && Tok.isNot(tok::r_brace) && in ParseInnerNamespace() 357 case tok::r_brace: in ParseLinkage() 1161 case tok::r_brace: // struct bar { struct foo {...} } in isValidAfterTypeSpecifier() 2154 SkipUntil(tok::r_brace, StopAtSemi | StopBeforeMatch); in ParseCXXMemberDeclaratorBeforeInitializer() 2270 SkipUntil(tok::r_brace, StopAtSemi); in ParseCXXClassMemberDeclaration() 2513 SkipUntil(tok::r_brace); in ParseCXXClassMemberDeclaration() 2718 SkipUntil(tok::r_brace, StopAtSemi | StopBeforeMatch); in ParseCXXClassMemberDeclaration() [all …]
|
D | ParseTemplate.cpp | 120 SkipUntil(tok::r_brace, StopAtSemi | StopBeforeMatch); in ParseTemplateDeclarationOrSpecialization() 135 SkipUntil(tok::r_brace, StopAtSemi | StopBeforeMatch); in ParseTemplateDeclarationOrSpecialization() 239 SkipUntil(tok::r_brace, StopAtSemi | StopBeforeMatch); in ParseSingleDeclarationAfterTemplate() 1425 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); in LexTemplateFunctionForLateParsing() 1432 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); in LexTemplateFunctionForLateParsing()
|
D | ParseObjc.cpp | 673 if (Tok.is(tok::r_brace)) in ParseObjCInterfaceDeclList() 710 SkipUntil(tok::r_brace, tok::at, StopAtSemi); in ParseObjCInterfaceDeclList() 1933 while (Tok.isNot(tok::r_brace) && !isEofOrEom()) { in ParseObjCClassInstanceVariables() 2002 SkipUntil(tok::r_brace, StopAtSemi | StopBeforeMatch); in ParseObjCClassInstanceVariables() 2693 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); in StashAwayMethodOrFunctionBodyTokens() 2696 ConsumeAndStoreUntil(tok::r_brace, Toks, /*StopAtSemi=*/false); in StashAwayMethodOrFunctionBodyTokens() 2731 SkipUntil(tok::r_brace); in ParseObjCMethodDefinition() 3450 while (Tok.isNot(tok::r_brace)) { in ParseObjCDictionaryLiteral() 3460 SkipUntil(tok::r_brace, StopAtSemi); in ParseObjCDictionaryLiteral() 3466 SkipUntil(tok::r_brace, StopAtSemi); in ParseObjCDictionaryLiteral() [all …]
|
D | ParseStmtAsm.cpp | 461 } else if (!InAsmComment && Tok.is(tok::r_brace)) { in ParseMicrosoftAsmStatement() 469 if (!InAsmComment && BraceNesting && Tok.is(tok::r_brace) && in ParseMicrosoftAsmStatement() 513 Diag(Tok, diag::err_expected) << tok::r_brace; in ParseMicrosoftAsmStatement()
|
D | ParseDecl.cpp | 1620 case tok::r_brace: in MightBeDeclarator() 1655 SkipUntil(tok::r_brace); in SkipMalformedDecl() 1673 case tok::r_brace: in SkipMalformedDecl() 1905 SkipUntil(tok::r_brace, StopAtSemi | StopBeforeMatch); in ParseDeclGroup() 3679 while (!tryParseMisplacedModuleImport() && Tok.isNot(tok::r_brace) && in ParseStructUnionBody() 3753 if (Tok.is(tok::r_brace)) { in ParseStructUnionBody() 3760 SkipUntil(tok::r_brace, StopAtSemi | StopBeforeMatch); in ParseStructUnionBody() 4012 SkipUntil(tok::r_brace, StopAtSemi); in ParseEnumSpecifier() 4136 SkipUntil(tok::r_brace, StopAtSemi); in ParseEnumSpecifier() 4172 if (Tok.is(tok::r_brace) && !getLangOpts().CPlusPlus) in ParseEnumBody() [all …]
|
D | RAIIObjectsForParser.h | 394 Close = tok::r_brace;
|
/external/clang/lib/Format/ |
D | UnwrappedLineFormatter.cpp | 193 I[1]->First->is(tok::r_brace)) || in tryFitMultipleLinesInOne() 304 if (Line->First->isOneOf(tok::kw_case, tok::kw_default, tok::r_brace)) in tryMergeShortCaseLabels() 337 tok::kw_for, tok::r_brace, Keywords.kw___except)) { in tryMergeSimpleBlock() 357 if (Tok->is(tok::r_brace) && !Tok->MustBreakBefore && in tryMergeSimpleBlock() 391 if (Tok->isNot(tok::r_brace)) in tryMergeSimpleBlock() 831 (TheLine.Level == RangeMinLevel && !TheLine.startsWith(tok::r_brace)); in format() 920 if (RootToken.is(tok::r_brace) && in formatFirstToken() 937 if (PreviousLine && PreviousLine->Last->isOneOf(tok::semi, tok::r_brace) && in formatFirstToken()
|
D | UnwrappedLineParser.cpp | 274 kind = tok::r_brace; in parseLevel() 290 case tok::r_brace: in parseLevel() 344 case tok::r_brace: in calculateBraceTypes() 437 : !FormatTok->is(tok::r_brace)) { in parseBlock() 804 if (FormatTok->is(tok::r_brace)) { in parseStructuralElement() 979 case tok::r_brace: in parseStructuralElement() 1314 case tok::r_brace: in parseBracedList() 1355 case tok::r_brace: in parseParens() 1397 case tok::r_brace: in parseSquare() 1513 if (FormatTok->isOneOf(tok::semi, tok::r_brace, tok::eof)) in parseTryCatch() [all …]
|
D | TokenAnnotator.cpp | 91 if (CurrentToken->isOneOf(tok::r_paren, tok::r_square, tok::r_brace) || in parseAngle() 267 if (CurrentToken->isOneOf(tok::r_square, tok::r_brace)) in parseParens() 374 if (CurrentToken->isOneOf(tok::r_paren, tok::r_brace)) in parseSquare() 412 if (CurrentToken->is(tok::r_brace)) { in parseBrace() 605 case tok::r_brace: in consumeToken() 632 tok::r_brace)) { in consumeToken() 1276 tok::kw_false, tok::r_brace) || in determineStarAmpUsage() 1557 NextNonCommentLine = (*I)->First->isNot(tok::r_brace) ? (*I) : nullptr; in setCommentLineLevels() 1721 if (Parameter->isOneOf(tok::comment, tok::r_brace)) in calculateFormattingInformation() 1925 if (Right.is(tok::r_brace)) in splitPenalty() [all …]
|
D | SortJavaScriptImports.cpp | 399 if (Current->is(tok::r_brace)) in parseNamedBindings() 421 if (Current->is(tok::r_brace)) in parseNamedBindings()
|
D | ContinuationIndenter.cpp | 165 !Current.isOneOf(tok::r_paren, tok::r_brace)) in mustBreak() 265 Previous.is(tok::l_brace) && !Current.isOneOf(tok::r_brace, tok::comment)) in mustBreak() 560 Current.is(tok::r_brace) && State.Stack.size() > 1 && in addTokenOnNewLine() 619 if (Current.isOneOf(tok::r_brace, tok::r_square) && State.Stack.size() > 1) { in getNewLineColumn() 701 PreviousNonComment->isNot(tok::r_brace)) in getNewLineColumn() 1022 (Current.is(tok::r_brace) && State.NextToken != State.Line->First) || in moveStatePastScopeCloser()
|
D | WhitespaceManager.cpp | 257 } else if (Changes[i].Kind == tok::r_brace || in AlignTokens() 368 Changes[i - 1].Kind == tok::r_brace && in alignTrailingComments()
|
D | FormatToken.h | 342 return isOneOf(tok::r_paren, tok::r_brace, tok::r_square, in closesScope()
|
D | FormatTokenLexer.cpp | 145 tok::r_brace, tok::l_square, tok::semi, tok::exclaim, in precedesOperand()
|
/external/swiftshader/third_party/LLVM/lib/TableGen/ |
D | TGLexer.h | 36 l_brace, r_brace, // { } enumerator
|
D | TGParser.cpp | 561 if (Lex.getCode() != tgtok::r_brace) { in ParseOptionalBitList() 1123 if (Lex.getCode() != tgtok::r_brace) { in ParseSimpleValue() 1127 if (Lex.getCode() != tgtok::r_brace) { in ParseSimpleValue() 1331 if (Lex.getCode() != tgtok::r_brace) { in ParseValue() 1614 while (Lex.getCode() != tgtok::r_brace) in ParseBody() 1832 if (Lex.getCode() != tgtok::r_brace) { in ParseTopLevelLet() 1902 if (Lex.Lex() == tgtok::r_brace) // eat the '{'. in ParseMultiClass() 1905 while (Lex.getCode() != tgtok::r_brace) { in ParseMultiClass()
|
D | TGLexer.cpp | 105 case '}': return tgtok::r_brace; in LexToken()
|
/external/llvm/lib/TableGen/ |
D | TGLexer.h | 37 l_brace, r_brace, // { } enumerator
|
D | TGParser.cpp | 639 if (Lex.getCode() != tgtok::r_brace) { in ParseOptionalBitList() 1256 if (Lex.getCode() != tgtok::r_brace) { in ParseSimpleValue() 1260 if (Lex.getCode() != tgtok::r_brace) { in ParseSimpleValue() 1490 if (Lex.getCode() != tgtok::r_brace) { in ParseValue() 1791 if (Lex.getCode() != tgtok::r_brace) { in ParseForeachDeclaration() 1919 while (Lex.getCode() != tgtok::r_brace) in ParseBody() 2086 if (Lex.getCode() != tgtok::r_brace) { in ParseForeach() 2211 if (Lex.getCode() != tgtok::r_brace) { in ParseTopLevelLet() 2288 if (Lex.Lex() == tgtok::r_brace) // eat the '{'. in ParseMultiClass() 2291 while (Lex.getCode() != tgtok::r_brace) { in ParseMultiClass()
|
D | TGLexer.cpp | 110 case '}': return tgtok::r_brace; in LexToken()
|
/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 374 r_brace
|