Commit a99ac041 authored by Don Slutz's avatar Don Slutz Committed by Blue Swirl

CHECKPATCH: Add --debug adv_dcs

Add debug options to find this issue.  They were not listed
in the help because the are not simple to understand the output of.
Signed-off-by: 's avatarDon Slutz <Don@CloudSwitch.com>
Signed-off-by: 's avatarBlue Swirl <blauwirbel@gmail.com>
parent f45ddd14
......@@ -97,6 +97,7 @@ my $dbg_values = 0;
my $dbg_possible = 0;
my $dbg_type = 0;
my $dbg_attr = 0;
my $dbg_adv_dcs = 0;
for my $key (keys %debug) {
## no critic
eval "\${dbg_$key} = '$debug{$key}';";
......@@ -2575,6 +2576,8 @@ sub process {
$allowed = 1;
}
}
print "DCS: level=$level block<$block> allowed=$allowed\n"
if $dbg_adv_dcs;
if ($level == 0 && $block !~ /^\s*\{/ && !$allowed) {
my $herectx = $here . "\n";;
my $cnt = statement_rawlines($block);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment