[PATCH] D94661: [clang-format] [PR19056] Add support for access modifiers indentation
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 14 08:09:18 PST 2021
curdeius added a comment.
That looks like a strange style option to me. Is there any bigger codebase formatting the code this way?
================
Comment at: clang/docs/ClangFormatStyleOptions.rst:2039
+**IndentAccessModifiers** (``bool``)
+ Makes an indentation level for record (``class``, ``struct``, ``union``)
----------------
The name `IndentAccessModifiers` is misleading for me. Access modifiers are public, protected, private.
================
Comment at: clang/docs/ClangFormatStyleOptions.rst:2039
+**IndentAccessModifiers** (``bool``)
+ Makes an indentation level for record (``class``, ``struct``, ``union``)
----------------
curdeius wrote:
> The name `IndentAccessModifiers` is misleading for me. Access modifiers are public, protected, private.
Hmm, actually that's the description that is misleading.
================
Comment at: clang/unittests/Format/FormatTest.cpp:17868
+ FormatStyle Style = getLLVMStyle();
+ Style.AccessModifierOffset = 4;
+ Style.AllowShortEnumsOnASingleLine = false;
----------------
Why are those non-related style options here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94661/new/
https://reviews.llvm.org/D94661
More information about the cfe-commits
mailing list