mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 09:58:09 +00:00
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 <ptikhomirov@virtuozzo.com>
This commit is contained in:
parent
fcdb753ed5
commit
7280e96a79
@ -516,6 +516,7 @@ IncludeCategories:
|
||||
Priority: 1
|
||||
IncludeIsMainRegex: '(Test)?$'
|
||||
IndentCaseLabels: false
|
||||
IndentGotoLabels: false
|
||||
IndentPPDirectives: None # Unknown to clang-format-5.0
|
||||
IndentWidth: 8
|
||||
IndentWrappedFunctionNames: false
|
||||
|
@ -14,4 +14,5 @@ curl -s "${URL}" | sed -e "
|
||||
s,ForEachMacros:,ForEachMacros:\n - 'for_each_pstree_item',g;
|
||||
s,\(AlignTrailingComments:.*\)$,\1\nAlignConsecutiveMacros: true,g;
|
||||
s,AlignTrailingComments: false,AlignTrailingComments: true,g;
|
||||
s,\(IndentCaseLabels: false\),\1\nIndentGotoLabels: false,g;
|
||||
" > .clang-format
|
||||
|
Loading…
x
Reference in New Issue
Block a user