diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-06-25 18:44:30 -0400 |
---|---|---|
committer | Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> | 2018-08-01 12:38:51 -0400 |
commit | 7bee9bd21b404a2fa76c1a8e0ff68379aeef2b91 (patch) | |
tree | 95add68ee213fd4be0c824d5e66f9230c6ec920b /.clang-format | |
parent | acb1872577b346bd15ab3a3f8dff780d6cca4b70 (diff) |
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 <joe@perches.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.clang-format b/.clang-format index faffc0d5af4e..1d5da22e0ba5 100644 --- a/.clang-format +++ b/.clang-format | |||
@@ -382,7 +382,7 @@ IncludeIsMainRegex: '(Test)?$' | |||
382 | IndentCaseLabels: false | 382 | IndentCaseLabels: false |
383 | #IndentPPDirectives: None # Unknown to clang-format-5.0 | 383 | #IndentPPDirectives: None # Unknown to clang-format-5.0 |
384 | IndentWidth: 8 | 384 | IndentWidth: 8 |
385 | IndentWrappedFunctionNames: true | 385 | IndentWrappedFunctionNames: false |
386 | JavaScriptQuotes: Leave | 386 | JavaScriptQuotes: Leave |
387 | JavaScriptWrapImports: true | 387 | JavaScriptWrapImports: true |
388 | KeepEmptyLinesAtTheStartOfBlocks: false | 388 | KeepEmptyLinesAtTheStartOfBlocks: false |