Skip to content

Commit 7bee9bd

Browse files
jgunthorpeojeda
authored andcommitted
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 <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent acb1872 commit 7bee9bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.clang-format

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ IncludeIsMainRegex: '(Test)?$'
382382
IndentCaseLabels: false
383383
#IndentPPDirectives: None # Unknown to clang-format-5.0
384384
IndentWidth: 8
385-
IndentWrappedFunctionNames: true
385+
IndentWrappedFunctionNames: false
386386
JavaScriptQuotes: Leave
387387
JavaScriptWrapImports: true
388388
KeepEmptyLinesAtTheStartOfBlocks: false

0 commit comments

Comments
 (0)