Skip to content

Commit d7f6604

Browse files
l0kodojeda
authored andcommitted
clang-format: Fix goto labels indentation
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 [Updated header comment to >= 10] Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 96232c7 commit d7f6604

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.clang-format

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22
#
3-
# clang-format configuration file. Intended for clang-format >= 6.
3+
# clang-format configuration file. Intended for clang-format >= 10.
44
#
55
# For more information, see:
66
#
@@ -633,6 +633,7 @@ IncludeCategories:
633633
Priority: 1
634634
IncludeIsMainRegex: '(Test)?$'
635635
IndentCaseLabels: false
636+
IndentGotoLabels: false
636637
IndentPPDirectives: None
637638
IndentWidth: 8
638639
IndentWrappedFunctionNames: false

0 commit comments

Comments
 (0)