================ @@ -5682,12 +5683,15 @@ bool TokenAnnotator::mustBreakBefore(const AnnotatedLine &Line, (Style.BreakTemplateDeclarations == FormatStyle::BTDS_Leave && Right.NewlinesBefore > 0); } - if (Left.ClosesRequiresClause && Right.isNot(tok::semi) && - Right.isNot(tok::l_brace)) { + if (Left.ClosesRequiresClause && Right.isNot(tok::semi)) { switch (Style.RequiresClausePosition) { case FormatStyle::RCPS_OwnLine: case FormatStyle::RCPS_WithPreceding: return true; + case FormatStyle::RCPS_OwnLineWithBrace: + if (Right.isNot(tok::l_brace)) + return true; + break; ---------------- urnathan wrote:
I originally made the return conditional to match the ';' control flow. But sure, direct return in both cases works too. https://github.com/llvm/llvm-project/pull/102078 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits