clang-format: Set IndentWrappedFunctionNames false
PATCH RESEND 1/1 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.ckernel/fork.c
etc
--- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Resending outside the merge window with no change..
If there is no clear upstream path for this file (it has no MAINTAINERS entry?) I could take it to Linus via the rdma.git tree, eg as a 'collectively maintained' file.
Would prefer Miguel's Ack to do that though. Looks like Andrew Morton took the original patch introducing the file?
Thanks,
Jason
.clang-format +1 -1
@@ -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
Signature · 1 line
2.17.0
Hi,
Quoted 21 lines · Jason Gunthorpe
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.ckernel/fork.c
etcAcked-by Joe Perches <[email protected]>Signed-off-by Jason Gunthorpe <[email protected]>
Quoted 8 lines
--- .clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Resending outside the merge window with no change..
If there is no clear upstream path for this file (it has no
MAINTAINERSentry?) I could take it to Linus via the rdma.git tree, eg
We can add an specific entry, yeah. Is there any policy for "general files" (or some general/catch-all entry)?
Quoted 1 line
as a 'collectively maintained' file.
As you prefer -- I can also pick it up through auxdisplay; but I am not sure if we should put it in any "unrelated" tree, though. (Since the file will not probably receive many patches, I originally thought that it would be picked up by Andrew or some other "general" tree instead.)
Quoted 3 lines
Would prefer Miguel's Ack to do that though. Looks like Andrew Morton took the original patch introducing the file?
Yep, I sent it to Andrew and he kindly picked it up. Probably he didn't notice this one.
As for the patch:
Cheers,
Miguel
Quoted 20 lines
Thanks,
Jason.clang-format +1
-2@@ -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 --2.17.0
Quoted 35 lines · Miguel Ojeda
Hi,
Quoted 21 lines · Jason Gunthorpe
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.ckernel/fork.c
etcAcked-by Joe Perches <[email protected]>Signed-off-by Jason Gunthorpe <[email protected]>Quoted 7 lines
.clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Resending outside the merge window with no change..
If there is no clear upstream path for this file (it has no
MAINTAINERSentry?) I could take it to Linus via the rdma.git tree, egWe can add an specific entry, yeah. Is there any policy for "general files" (or some general/catch-all entry)?
Quoted 7 lines
Quoted 1 line
as a 'collectively maintained' file.
As you prefer -- I can also pick it up through auxdisplay; but I am not sure if we should put it in any "unrelated" tree, though. (Since the file will not probably receive many patches, I originally thought that it would be picked up by Andrew or some other "general" tree instead.)
Well, I'd rather you take it as the owner of the file, honestly :) Along with a MAINTAINERS update...
I also don't know too well what the policy is for these sorts of files
- other catch all files like kernel.h I run through rdma.git from time to time, but that is in relation to patches that depend on them..
Quoted 9 lines
Quoted 2 lines
Would prefer Miguel's Ack to do that though. Looks like Andrew Morton took the original patch introducing the file?
Yep, I sent it to Andrew and he kindly picked it up. Probably he didn't notice this one.
As for the patch:
Acked-by Miguel Ojeda <[email protected]>
Lets give Andrew some time, he is probably very busy. If it gets to rc5 without it getting picked up one of us can grab it instead to help out..
Thanks,
Jason
Quoted 38 lines · Jason Gunthorpe
Quoted 37 lines · Miguel Ojeda
Hi,
Quoted 21 lines · Jason Gunthorpe
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.ckernel/fork.c
etcAcked-by Joe Perches <[email protected]>Signed-off-by Jason Gunthorpe <[email protected]>Quoted 7 lines
.clang-format | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Resending outside the merge window with no change..
If there is no clear upstream path for this file (it has no
MAINTAINERSentry?) I could take it to Linus via the rdma.git tree, egWe can add an specific entry, yeah. Is there any policy for "general files" (or some general/catch-all entry)?
Quoted 1 line
as a 'collectively maintained' file.
Quoted 8 lines
Quoted 5 lines
As you prefer -- I can also pick it up through auxdisplay; but I am not sure if we should put it in any "unrelated" tree, though. (Since the file will not probably receive many patches, I originally thought that it would be picked up by Andrew or some other "general" tree instead.)
Well, I'd rather you take it as the owner of the file, honestly :) Along with a
MAINTAINERSupdate...
OK -- I will send the MAINTAINERS update patch :)
Quoted 11 lines
I also don't know too well what the policy is for these sorts of files
- other catch all files likekernel.hI run through rdma.git from time to time, but that is in relation to patches that depend on them..Quoted 6 lines
Quoted 2 lines
Would prefer Miguel's Ack to do that though. Looks like Andrew Morton took the original patch introducing the file?
Yep, I sent it to Andrew and he kindly picked it up. Probably he didn't notice this one.
Quoted 7 lines
Quoted 3 lines
As for the patch:
Acked-by Miguel Ojeda <[email protected]>Lets give Andrew some time, he is probably very busy. If it gets to rc5 without it getting picked up one of us can grab it instead to help out..
Sure! :)
(and thanks!)
Cheers,
Miguel
Quoted 3 lines
Thanks,
Jason