Home
last modified time | relevance | path

Searched refs:LBrace (Results 1 – 19 of 19) sorted by relevance

/external/clang/lib/Format/
DFormatToken.cpp82 const FormatToken *LBrace = in formatAfterToken() local
84 if (!LBrace || !LBrace->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) || in formatAfterToken()
85 LBrace->BlockKind == BK_Block || LBrace->Type == TT_DictLiteral || in formatAfterToken()
86 LBrace->Next->Type == TT_DesignatedInitializerPeriod) in formatAfterToken()
106 while (State.NextToken != LBrace->MatchingParen) { in formatAfterToken()
DUnwrappedLineFormatter.cpp511 const FormatToken *LBrace = State.NextToken->getPreviousNonComment(); in formatChildren() local
513 if (!LBrace || LBrace->isNot(tok::l_brace) || in formatChildren()
514 LBrace->BlockKind != BK_Block || Previous.Children.size() == 0) in formatChildren()
/external/llvm-project/clang/lib/Format/
DFormatToken.cpp86 const FormatToken *LBrace = in formatAfterToken() local
88 if (!LBrace || !LBrace->isOneOf(tok::l_brace, TT_ArrayInitializerLSquare) || in formatAfterToken()
89 LBrace->is(BK_Block) || LBrace->is(TT_DictLiteral) || in formatAfterToken()
90 LBrace->Next->is(TT_DesignatedInitializerPeriod)) in formatAfterToken()
111 while (State.NextToken != LBrace->MatchingParen) { in formatAfterToken()
DTokenAnnotator.cpp3726 FormatToken *LBrace = Right.Next; in mustBreakBefore() local
3727 if (LBrace && LBrace->is(tok::colon)) { in mustBreakBefore()
3728 LBrace = LBrace->Next; in mustBreakBefore()
3729 if (LBrace && LBrace->is(tok::at)) { in mustBreakBefore()
3730 LBrace = LBrace->Next; in mustBreakBefore()
3731 if (LBrace) in mustBreakBefore()
3732 LBrace = LBrace->Next; in mustBreakBefore()
3735 if (LBrace && in mustBreakBefore()
3744 ((LBrace->is(tok::l_brace) && in mustBreakBefore()
3745 (LBrace->is(TT_DictLiteral) || in mustBreakBefore()
[all …]
DUnwrappedLineFormatter.cpp769 const FormatToken *LBrace = State.NextToken->getPreviousNonComment(); in formatChildren() local
771 if (!LBrace || LBrace->isNot(tok::l_brace) || LBrace->isNot(BK_Block) || in formatChildren()
DContinuationIndenter.cpp86 auto FindParenState = [&](const FormatToken *LBrace) -> const ParenState * { in getLengthToMatchingParen() argument
87 while (MatchingStackIndex >= 0 && Stack[MatchingStackIndex].Tok != LBrace) in getLengthToMatchingParen()
/external/llvm-project/clang-tools-extra/clangd/
DSemanticSelection.cpp60 const auto *LBrace = cast_or_null<syntax::Leaf>( in extractFoldingRange() local
67 if (!LBrace || !RBrace) in extractFoldingRange()
70 const SourceLocation LBraceLocInfo = LBrace->getToken()->endLocation(), in extractFoldingRange()
/external/python/cpython3/Parser/
Dasdl.py215 LParen, RParen, LBrace, RBrace) = range(11)
219 ')': RParen, '*': Asterisk, '{': LBrace, '}': RBrace}
279 self._match(TokenKind.LBrace)
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DElseAfterReturnCheck.cpp129 SourceLocation LBrace = CS->getLBracLoc(); in removeElseAndBrackets() local
132 Remap(LBrace).getLocWithOffset(TokLen(LBrace) + 1); in removeElseAndBrackets()
/external/clang/lib/Lex/
DModuleMap.cpp979 LBrace, enumerator
1143 Tok.Kind = MMToken::LBrace; in consumeToken()
1216 case MMToken::LBrace: in skipUntil()
1417 if (!Tok.is(MMToken::LBrace)) { in parseModuleDecl()
2219 if (Tok.is(MMToken::LBrace)) { in parseInferredModuleDecl()
2248 if (!Tok.is(MMToken::LBrace)) { in parseInferredModuleDecl()
2419 case MMToken::LBrace: in parseModuleMapFile()
/external/llvm-project/clang/lib/Lex/
DModuleMap.cpp1366 LBrace, enumerator
1549 Tok.Kind = MMToken::LBrace; in consumeToken()
1660 case MMToken::LBrace: in skipUntil()
1930 if (!Tok.is(MMToken::LBrace)) { in parseModuleDecl()
2327 if (Tok.is(MMToken::LBrace)) { in parseHeaderDecl()
2760 if (Tok.is(MMToken::LBrace)) { in parseInferredModuleDecl()
2789 if (!Tok.is(MMToken::LBrace)) { in parseInferredModuleDecl()
2965 case MMToken::LBrace: in parseModuleMapFile()
/external/clang/lib/Sema/
DAnalysisBasedWarnings.cpp547 SourceLocation LBrace = Body->getLocStart(), RBrace = Body->getLocEnd(); in CheckFallThroughForBody() local
568 S.Diag(LBrace, CD.diag_NeverFallThroughOrReturn) << 0 << FD; in CheckFallThroughForBody()
570 S.Diag(LBrace, CD.diag_NeverFallThroughOrReturn) << 1 << MD; in CheckFallThroughForBody()
572 S.Diag(LBrace, CD.diag_NeverFallThroughOrReturn); in CheckFallThroughForBody()
DTreeTransform.h11831 SourceLocation LBrace; in RebuildCXXOperatorCallExpr() local
11836 LBrace = SourceLocation::getFromRawEncoding( in RebuildCXXOperatorCallExpr()
11841 LBrace = Callee->getLocStart(); in RebuildCXXOperatorCallExpr()
11845 return SemaRef.CreateOverloadedArraySubscriptExpr(LBrace, RBrace, in RebuildCXXOperatorCallExpr()
DSemaDeclCXX.cpp7336 SourceLocation LBrace, in ActOnStartNamespaceDef() argument
7341 SourceLocation Loc = II ? IdentLoc : LBrace; in ActOnStartNamespaceDef()
7454 /* 'using' */ LBrace, in ActOnStartNamespaceDef()
/external/llvm-project/clang/lib/Sema/
DAnalysisBasedWarnings.cpp672 SourceLocation LBrace = Body->getBeginLoc(), RBrace = Body->getEndLoc(); in CheckFallThroughForBody() local
704 S.Diag(LBrace, CD.diag_NeverFallThroughOrReturn) << 0 << FD; in CheckFallThroughForBody()
706 S.Diag(LBrace, CD.diag_NeverFallThroughOrReturn) << 1 << MD; in CheckFallThroughForBody()
708 S.Diag(LBrace, CD.diag_NeverFallThroughOrReturn); in CheckFallThroughForBody()
DTreeTransform.h14331 SourceLocation LBrace; in RebuildCXXOperatorCallExpr() local
14336 LBrace = SourceLocation::getFromRawEncoding( in RebuildCXXOperatorCallExpr()
14341 LBrace = Callee->getBeginLoc(); in RebuildCXXOperatorCallExpr()
14345 return SemaRef.CreateOverloadedArraySubscriptExpr(LBrace, RBrace, in RebuildCXXOperatorCallExpr()
DSemaDeclCXX.cpp10850 SourceLocation IdentLoc, IdentifierInfo *II, SourceLocation LBrace, in ActOnStartNamespaceDef() argument
10854 SourceLocation Loc = II ? IdentLoc : LBrace; in ActOnStartNamespaceDef()
10969 /* 'using' */ LBrace, in ActOnStartNamespaceDef()
/external/clang/include/clang/Sema/
DSema.h4192 SourceLocation LBrace,
/external/llvm-project/clang/include/clang/Sema/
DSema.h5455 SourceLocation LBrace,