[clang] [clang-format] Fix single-line enum wrapping with ColumnLimit: 0 (PR #240043)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 9 12:00:20 PST 2026


================
@@ -3007,6 +3007,42 @@ TEST_F(FormatTest, ShortEnums) {
                Style);
 }
 
+TEST_F(FormatTest, ShortEnumsWithoutColumnLimit) {
----------------
HazardyKnusperkeks wrote:

Please reduce the number of tests, one for not inserting a line break and one for keeping the existing line break are sufficient.

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


More information about the cfe-commits mailing list