diff options
author | Joe Perches <joe@perches.com> | 2014-04-03 14:49:32 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 16:21:15 -0700 |
commit | 91cb5195ff224dd9044cf927f80d9c633cdcffec (patch) | |
tree | 6c01f3e806877c640f5e2c09d9965cfd3c9d3725 /scripts/docproc.c | |
parent | 7ebd05ef1646e8cbef54e38343722741a4744626 (diff) | |
download | linux-91cb5195ff224dd9044cf927f80d9c633cdcffec.tar.bz2 |
checkpatch: expand parenthesis alignment test to declarations, functions and assignments
Currently the parenthesis alignment test works only on misalignments of
if statements like
if (foo(bar,
baz)
Expand the test to find misalignments like:
static inline int foo(int bar,
int baz)
and
foo(bar,
baz);
and
foo = bar(baz,
qux);
Expand the $Inline keyword for __inline and __inline__ too.
Add $Inline to $Declare so it also matches "static inline <foo>".
These checks are only performed with --strict.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/docproc.c')
0 files changed, 0 insertions, 0 deletions