================
@@ -1959,12 +1970,35 @@ void
ContinuationIndenter::moveStatePastScopeOpener(LineState &State,
NewIndent = CurrentState.LastSpace + Style.ContinuationIndentWidth;
}
const FormatToken *NextNonComment = Current.getNextNonComment();
- AvoidBinPacking = EndsInComma || Current.is(TT_DictLiteral) ||
- Style.isProto() || !Style.BinPackArguments ||
- (NextNonComment && NextNonComment->isOneOf(
- TT_DesignatedInitializerPeriod,
- TT_DesignatedInitializerLSquare));
+
+ bool AlignedArrayInitializer = Current.opensAlignedArrayInitializer(Style);
----------------
HazardyKnusperkeks wrote:
```suggestion
const bool AlignedArrayInitializer =
Current.opensAlignedArrayInitializer(Style);
```
https://github.com/llvm/llvm-project/pull/143781
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits