Messages in this thread Patch in this message | | | From | Mickaël Salaün <> | Subject | [PATCH v2 3/5] clang-format: Fix goto labels indentation | Date | Fri, 6 May 2022 18:01:04 +0200 |
| |
Thanks to IndentGotoLabels introduced with clang-format-10 [1], we can avoid goto labels identation. This follows the current coding style and it is then in line with the checkpatch.pl rules [2].
Link: https://clang.llvm.org/docs/ClangFormatStyleOptions.html [1] Link: https://lore.kernel.org/r/8b6b252b-47a6-9d52-f0bd-10d3bc4ad244@digikod.net [2] Cc: Miguel Ojeda <ojeda@kernel.org> Cc: Tom Rix <trix@redhat.com> Signed-off-by: Mickaël Salaün <mic@digikod.net> Link: https://lore.kernel.org/r/20220506160106.522341-4-mic@digikod.net --- .clang-format | 1 + 1 file changed, 1 insertion(+)
diff --git a/.clang-format b/.clang-format index 3bc1bdf0f3a1..30f68219c09e 100644 --- a/.clang-format +++ b/.clang-format @@ -633,6 +633,7 @@ IncludeCategories: Priority: 1 IncludeIsMainRegex: '(Test)?$' IndentCaseLabels: false +IndentGotoLabels: false IndentPPDirectives: None IndentWidth: 8 IndentWrappedFunctionNames: false -- 2.35.1
| |