lkml.org 
[lkml]   [2022]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 3/5] clang-format: Fix goto labels indentation
    Date
    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
    \
     
     \ /
      Last update: 2022-05-06 18:02    [W:4.876 / U:0.780 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site