diff options
author | Mickaël Salaün <[email protected]> | 2022-05-06 18:01:04 +0200 |
---|---|---|
committer | Miguel Ojeda <[email protected]> | 2022-05-20 19:22:55 +0200 |
commit | d7f6604341c748f803810664d5603af22b84a8cc (patch) | |
tree | ee2c37f97c828ec97a171d7e9775ad9fd67fa7a4 | |
parent | 96232c7d4f847a5e597177236159e6b32ccf60e4 (diff) |
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/[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]>
-rw-r--r-- | .clang-format | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format index daa69f87172c..2a4ddb8df856 100644 --- a/.clang-format +++ b/.clang-format @@ -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 |