2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +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:
Pavel Tikhomirov 2023-01-09 12:13:46 +03:00 committed by Andrei Vagin
parent fcdb753ed5
commit 7280e96a79
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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