Skip to content

Commit

Permalink
clang-format: Fix goto labels indentation
Browse files Browse the repository at this point in the history
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/[email protected] [2]
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]>
  • Loading branch information
l0kod authored and ojeda committed May 20, 2022
1 parent 96232c7 commit d7f6604
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -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:
#
Expand Down Expand Up @@ -633,6 +633,7 @@ IncludeCategories:
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentGotoLabels: false
IndentPPDirectives: None
IndentWidth: 8
IndentWrappedFunctionNames: false
Expand Down

0 comments on commit d7f6604

Please sign in to comment.