================
@@ -4089,6 +4088,11 @@ void 
TokenAnnotator::calculateFormattingInformation(AnnotatedLine &Line) const {
     }
   }
 
+  if (First->is(TT_ElseLBrace)) {
+    First->CanBreakBefore = true;
+    First->MustBreakBefore = true;
----------------
owenca wrote:

This is what I missed in #135906 (which set the `l_brace` of control statements 
to "wrap") because I forgot that the `l_brace` of `else` blocks was 
`TT_ElseLBrace` instead of `TT_ControlStatementLBrace`.

https://github.com/llvm/llvm-project/pull/161048
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to