[clang] [clang-format] Add PackParameters enum option to replace BinPackParameters. (PR #101882)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 4 11:50:25 PDT 2024


================
@@ -456,6 +455,21 @@ TEST(ConfigParseTest, ParsesConfiguration) {
               "AllowAllConstructorInitializersOnNextLine: false",
               PackConstructorInitializers, FormatStyle::PCIS_CurrentLine);
 
+  Style.PackParameters = FormatStyle::PPS_BinPack;
+  CHECK_PARSE("PackParameters: CurrentLine", PackParameters,
+              FormatStyle::PPS_CurrentLine);
+  CHECK_PARSE("PackParameters: BinPack", PackParameters,
+              FormatStyle::PPS_BinPack);
+  CHECK_PARSE("PackParameters: BreakAlways", PackParameters,
+              FormatStyle::PPS_BreakAlways);
+  // For backward compatibility
----------------
HazardyKnusperkeks wrote:

```suggestion
  // For backward compatibility.
```

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


More information about the cfe-commits mailing list