[clang] [clang-format] Allow array alignment on non-rectangular arrays (PR #143781)

Ben Dunkin via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 11 11:47:10 PDT 2025


================
@@ -274,76 +268,17 @@ class WhitespaceManager {
   void alignArrayInitializersLeftJustified(CellDescriptions &&CellDescs);
 
   /// Calculate the cell width between two indexes.
-  unsigned calculateCellWidth(unsigned Start, unsigned End,
-                              bool WithSpaces = false) const;
+  unsigned calculateCellWidth(const CellDescription &Cell) const;
 
   /// Get a set of fully specified CellDescriptions between \p Start and
   /// \p End of the change list.
   CellDescriptions getCells(unsigned Start, unsigned End);
 
-  /// Does this \p Cell contain a split element?
-  static bool isSplitCell(const CellDescription &Cell);
----------------
bdunkin wrote:

These functions are no longer used.

https://github.com/llvm/llvm-project/pull/143781


More information about the cfe-commits mailing list