[clang] [clang-format] Allow one indent level before explicit access labels (PR #227704)

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 30 12:57:13 PDT 2026


================
@@ -24920,6 +24920,59 @@ TEST_F(FormatTest, IndentAccessModifiers) {
                Style);
 }
 
+TEST_F(FormatTest, IndentImplicitAccessModifiers) {
+  FormatStyle Style = getLLVMStyle();
+  Style.IndentAccessModifiers = true;
+  Style.IndentImplicitAccessModifiers = false;
----------------
HazardyKnusperkeks wrote:

What's the expected output for
```
  Style.IndentAccessModifiers = false;
  Style.IndentImplicitAccessModifiers = true;
```
?

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


More information about the cfe-commits mailing list