Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105396
b: refs/heads/master
c: 7429c69
h: refs/heads/master
v: v3
  • Loading branch information
Andy Whitcroft authored and Linus Torvalds committed Jul 24, 2008
1 parent 81e6b0a commit 4df495a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 389a2fe57ffc59a649bea39db4d7e6d2eff2b562
refs/heads/master: 7429c6903e3628fc2cfea65ec7e13bac030c7bfe
11 changes: 7 additions & 4 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
my $tree = 1;
my $chk_signoff = 1;
my $chk_patch = 1;
my $tst_type = 0;
my $tst_only;
my $emacs = 0;
my $terse = 0;
Expand All @@ -44,7 +43,6 @@
'summary-file!' => \$summary_file,

'debug=s' => \%debug,
'test-type!' => \$tst_type,
'test-only=s' => \$tst_only,
) or exit;

Expand All @@ -67,6 +65,7 @@

my $dbg_values = 0;
my $dbg_possible = 0;
my $dbg_type = 0;
for my $key (keys %debug) {
eval "\${dbg_$key} = '$debug{$key}';"
}
Expand Down Expand Up @@ -1307,8 +1306,12 @@ sub process {
if ($line=~/^[^\+]/) {next;}

# TEST: allow direct testing of the type matcher.
if ($tst_type && $line =~ /^.$Declare$/) {
ERROR("TEST: is type $Declare\n" . $herecurr);
if ($dbg_type) {
if ($line =~ /^.\s*$Declare\s*$/) {
ERROR("TEST: is type\n" . $herecurr);
} elsif ($dbg_type > 1 && $line =~ /^.+($Declare)/) {
ERROR("TEST: is not type ($1 is)\n". $herecurr);
}
next;
}

Expand Down

0 comments on commit 4df495a

Please sign in to comment.