Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a134f8de authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds
Browse files

checkpatch: improve the TABSTOP test to include declarations

parent 00180468
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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",