[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:14 PDT 2026


================
@@ -3208,6 +3209,14 @@ struct FormatStyle {
   /// \version 13
   bool IndentAccessModifiers;
 
+  /// When `IndentAccessModifiers` is `true`, indent members before the first
+  /// explicit access modifier by two levels. Set this option to `false` to
+  /// indent those members by one level. Members after an explicit access
+  /// modifier still use two levels. This option has no effect if
+  /// `IndentAccessModifiers` is false.
+  /// \version 24
+  bool IndentImplicitAccessModifiers;
----------------
HazardyKnusperkeks wrote:

If the option stays, please sort it alphabetically.

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


More information about the cfe-commits mailing list