Projects STRLCPY criu Commits 06516ca0
🤬
  • clang-format: use IndentGotoLabels to get rid of goto label indentation

    This is done to follow 'Linux kernel coding style', same change was
    added to .clang-format in linux kernel source recently:
    https://github.com/torvalds/linux/commit/d7f6604341c74
    
    We don't change it in current code base but let's follow it in all
    future uses.
    
    Signed-off-by: Pavel Tikhomirov <[email protected]>
  • Loading...
  • Pavel Tikhomirov committed with Andrei Vagin 1 year ago
    06516ca0
    1 parent 48373432
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    .clang-format
    skipped 515 lines
    516 516   Priority: 1
    517 517  IncludeIsMainRegex: '(Test)?$'
    518 518  IndentCaseLabels: false
     519 +IndentGotoLabels: false
    519 520  IndentPPDirectives: None # Unknown to clang-format-5.0
    520 521  IndentWidth: 8
    521 522  IndentWrappedFunctionNames: false
    skipped 44 lines
  • ■ ■ ■ ■ ■
    scripts/fetch-clang-format.sh
    skipped 13 lines
    14 14   s,ForEachMacros:,ForEachMacros:\n - 'for_each_pstree_item',g;
    15 15   s,\(AlignTrailingComments:.*\)$,\1\nAlignConsecutiveMacros: true,g;
    16 16   s,AlignTrailingComments: false,AlignTrailingComments: true,g;
     17 + s,\(IndentCaseLabels: false\),\1\nIndentGotoLabels: false,g;
    17 18  " > .clang-format
    18 19   
Please wait...
Page is in error, reload to recover