]> Git Repo - J-linux.git/commitdiff
clang-format: Fix goto labels indentation
authorMickaël Salaün <[email protected]>
Fri, 6 May 2022 16:01:04 +0000 (18:01 +0200)
committerMiguel Ojeda <[email protected]>
Fri, 20 May 2022 17:22:55 +0000 (19:22 +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
Link: https://lore.kernel.org/r/[email protected]
Cc: Miguel Ojeda <[email protected]>
Cc: Tom Rix <[email protected]>
Signed-off-by: Mickaël Salaün <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[Updated header comment to >= 10]
Signed-off-by: Miguel Ojeda <[email protected]>
.clang-format

index daa69f87172c0be05ff056c078958de27d70d54e..2a4ddb8df85673a2196510a60ce86f1d7cc8bb3c 100644 (file)
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0
 #
-# clang-format configuration file. Intended for clang-format >= 6.
+# clang-format configuration file. Intended for clang-format >= 10.
 #
 # For more information, see:
 #
@@ -633,6 +633,7 @@ IncludeCategories:
     Priority: 1
 IncludeIsMainRegex: '(Test)?$'
 IndentCaseLabels: false
+IndentGotoLabels: false
 IndentPPDirectives: None
 IndentWidth: 8
 IndentWrappedFunctionNames: false
This page took 0.048915 seconds and 4 git commands to generate.