[clang] [clang-format] Add new option: WrapNamespaceBodyWithNewlines (PR #106145)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 14 00:20:53 PDT 2024
================
@@ -28104,6 +28104,242 @@ TEST_F(FormatTest, BreakBinaryOperations) {
Style);
}
+TEST_F(FormatTest, WrapNamespaceBodyWithEmptyLinesNever) {
+ auto Style = getLLVMStyle();
+ Style.FixNamespaceComments = false;
+
----------------
owenca wrote:
```suggestion
Style.WrapNamespaceBodyWithEmptyLines = FormatStyle::WNBWELS_Never;
```
https://github.com/llvm/llvm-project/pull/106145
More information about the cfe-commits
mailing list