Home
last modified time | relevance | path

Searched refs:MatchingParen (Results 1 – 8 of 8) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/Format/
H A DTokenAnnotator.cpp68 Left->Previous->MatchingParen && in isLambdaParameterList()
69 Left->Previous->MatchingParen->is(TT_TemplateOpener)) { in isLambdaParameterList()
70 Left = Left->Previous->MatchingParen; in isLambdaParameterList()
75 Left->Previous->MatchingParen && in isLambdaParameterList()
76 Left->Previous->MatchingParen->is(TT_LambdaLSquare); in isLambdaParameterList()
164 (!Previous.Previous->MatchingParen || in parseAngle()
165 Previous.Previous->MatchingParen->isNot( in parseAngle()
216 Left->MatchingParen = CurrentToken; in parseAngle()
217 CurrentToken->MatchingParen = Left; in parseAngle()
401 } else if (OpeningParen.Previous && OpeningParen.Previous->MatchingParen && in parseParens()
[all …]
H A DFormatToken.cpp62 const auto *LBrace = MatchingParen; in isBlockIndentedInitRBrace()
124 while (State.NextToken != LBrace->MatchingParen) { in formatAfterToken()
168 if (!Token->MatchingParen || in precomputeFormattingInfos()
217 ItemEnd = Token->MatchingParen; in precomputeFormattingInfos()
228 ItemEnd = Token->MatchingParen->Previous; in precomputeFormattingInfos()
244 if (ItemEnd->getNextNonComment() == Token->MatchingParen) in precomputeFormattingInfos()
H A DContinuationIndenter.cpp89 if (!Tok.MatchingParen) in getLengthToMatchingParen()
91 FormatToken *End = Tok.MatchingParen; in getLengthToMatchingParen()
108 if (End->Next->MatchingParen && in getLengthToMatchingParen()
109 End->Next->MatchingParen->isOneOf( in getLengthToMatchingParen()
111 const ParenState *State = FindParenState(End->Next->MatchingParen); in getLengthToMatchingParen()
360 Previous.MatchingParen && Previous.MatchingParen->Previous && in canBreak()
361 Previous.MatchingParen->Previous->MatchingParen && in canBreak()
362 Previous.MatchingParen->Previous->MatchingParen->is(TT_LambdaLBrace)) { in canBreak()
364 assert(Previous.MatchingParen->Previous->is(tok::r_brace)); in canBreak()
848 (Previous.MatchingParen && in addTokenOnCurrentLine()
[all …]
H A DQualifierAlignmentFixer.cpp342 assert(Next->MatchingParen && "Missing template closer"); in analyzeRight()
343 TypeToken = Next->MatchingParen; in analyzeRight()
463 assert(TypeToken->MatchingParen && "Missing template opener"); in analyzeLeft()
464 TypeToken = TypeToken->MatchingParen->getPreviousNonComment(); in analyzeLeft()
H A DWhitespaceManager.cpp391 if (CurrentChange.Tok->MatchingParen && in AlignTokenSequence()
392 CurrentChange.Tok->MatchingParen->is(TT_LambdaLBrace)) { in AlignTokenSequence()
751 if (Current->is(tok::r_paren) && Current->MatchingParen) { in alignConsecutiveMacros()
752 Current = Current->MatchingParen->Previous; in alignConsecutiveMacros()
1173 Tok = Tok->MatchingParen; in alignTrailingComments()
1303 if (Changes[InsideIndex].Tok == C.Tok->MatchingParen) { in alignArrayInitializers()
1468 const FormatToken *MatchingParen = nullptr; in getCells() local
1478 MatchingParen = C.Tok->MatchingParen; in getCells()
1501 if (C.Tok == MatchingParen) { in getCells()
H A DUnwrappedLineParser.cpp870 Tok->MatchingParen = FormatTok; in parseBlock()
871 FormatTok->MatchingParen = Tok; in parseBlock()
2767 FormatToken *RightBrace = LeftBrace->MatchingParen; in markOptionalBraces()
2774 assert(RightBrace->MatchingParen == LeftBrace); in markOptionalBraces()
2886 (IfLeftBrace && !IfLeftBrace->MatchingParen) || in parseIfThenElse()
2918 assert(ElseLeftBrace->MatchingParen); in parseIfThenElse()
2954 (ElseLeftBrace && !ElseLeftBrace->MatchingParen) || in parseIfThenElse()
2963 FormatToken *IfRightBrace = IfLeftBrace->MatchingParen; in parseIfThenElse()
2965 assert(IfRightBrace->MatchingParen == IfLeftBrace); in parseIfThenElse()
2968 IfLeftBrace->MatchingParen = nullptr; in parseIfThenElse()
[all …]
H A DFormatToken.h564 FormatToken *MatchingParen = nullptr; member
877 return MatchingParen && MatchingParen->opensBlockOrBlockTypeList(Style); in closesBlockOrBlockTypeList()
H A DFormat.cpp2294 const auto *LBrace = Prev->MatchingParen; in removeSemi()
2491 if (Prev->is(tok::r_paren) && Prev->MatchingParen) { in countVariableAlignments()
2493 Prev->MatchingParen->getPreviousNonComment()) { in countVariableAlignments()
2589 FormatToken *Matching = FormatTok->MatchingParen; in insertTrailingCommas()