diff options
author | Joe Perches <joe@perches.com> | 2018-02-01 13:29:42 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2018-02-01 16:21:03 +1100 |
commit | bc63fde5496594d1684cc1f667a33263c26bf19f (patch) | |
tree | f2ae5058385118f4e4b4638ecc82f11b0da44afe /scripts | |
parent | 46ecf083e1af0251d25e95c291d3e2da77c2e44e (diff) | |
download | linux-next-bc63fde5496594d1684cc1f667a33263c26bf19f.tar.gz |
checkpatch: improve the TABSTOP test to include declarations
Declarations should start on a tabstop too.
Link: http://lkml.kernel.org/r/1b5f97673f36595956ad43329f77bf1a5546d2ff.1513976662.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 1ab6eb52a77e..e6646163839c 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3020,7 +3020,7 @@ sub process { # check indentation starts on a tab stop if ($^V && $^V ge 5.10.0 && - $sline =~ /^\+\t+( +)(?:$c90_Keywords\b|\{\s*$|\}\s*(?:else\b|while\b|\s*$))/) { + $sline =~ /^\+\t+( +)(?:$c90_Keywords\b|\{\s*$|\}\s*(?:else\b|while\b|\s*$)|$Declare\s*$Ident\s*[;=\[])/) { my $indent = length($1); if ($indent % 8) { if (WARN("TABSTOP", |