Loading clang/lib/Format/WhitespaceManager.h +1 −1 Original line number Diff line number Diff line Loading @@ -202,7 +202,7 @@ private: // Determine if every row in the array // has the same number of columns. bool isRectangular() const { if (CellCounts.empty()) if (CellCounts.size() < 2) return false; for (auto NumberOfColumns : CellCounts) Loading clang/unittests/Format/FormatTest.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -20884,6 +20884,7 @@ TEST_F(FormatTest, CatchAlignArrayOfStructuresRightAlignment) { "};", Style); // TODO: Fix the indentations below when this option is fully functional. #if 0 verifyFormat("int a[][] = {\n" " {\n" " {0, 2}, //\n" Loading @@ -20891,6 +20892,7 @@ TEST_F(FormatTest, CatchAlignArrayOfStructuresRightAlignment) { " }\n" "};", Style); #endif Style.ColumnLimit = 100; verifyFormat( "test demo[] = {\n" Loading
clang/lib/Format/WhitespaceManager.h +1 −1 Original line number Diff line number Diff line Loading @@ -202,7 +202,7 @@ private: // Determine if every row in the array // has the same number of columns. bool isRectangular() const { if (CellCounts.empty()) if (CellCounts.size() < 2) return false; for (auto NumberOfColumns : CellCounts) Loading
clang/unittests/Format/FormatTest.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -20884,6 +20884,7 @@ TEST_F(FormatTest, CatchAlignArrayOfStructuresRightAlignment) { "};", Style); // TODO: Fix the indentations below when this option is fully functional. #if 0 verifyFormat("int a[][] = {\n" " {\n" " {0, 2}, //\n" Loading @@ -20891,6 +20892,7 @@ TEST_F(FormatTest, CatchAlignArrayOfStructuresRightAlignment) { " }\n" "};", Style); #endif Style.ColumnLimit = 100; verifyFormat( "test demo[] = {\n"