From: Jason Gunthorpe Date: Mon, 25 Jun 2018 22:44:30 +0000 (-0600) Subject: clang-format: Set IndentWrappedFunctionNames false X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7bee9bd21b404a2fa76c1a8e0ff68379aeef2b91;p=linux.git clang-format: Set IndentWrappedFunctionNames false The true option causes this indenting for functions: static struct something_very_very_long * function(void *arg) { While a quick survey suggests that the usual Linux fallback is the GNU style: static struct something_very_very_long * function(void *arg) { Eg as seen in: kernel/cpu.c kernel/fork.c etc Acked-by: Joe Perches Signed-off-by: Jason Gunthorpe Signed-off-by: Miguel Ojeda --- diff --git a/.clang-format b/.clang-format index faffc0d5af4ee..1d5da22e0ba50 100644 --- a/.clang-format +++ b/.clang-format @@ -382,7 +382,7 @@ IncludeIsMainRegex: '(Test)?$' IndentCaseLabels: false #IndentPPDirectives: None # Unknown to clang-format-5.0 IndentWidth: 8 -IndentWrappedFunctionNames: true +IndentWrappedFunctionNames: false JavaScriptQuotes: Leave JavaScriptWrapImports: true KeepEmptyLinesAtTheStartOfBlocks: false