Enable hf checks by default. Add a check to see if the abbreviation is equal to the hf_variable_name.

svn path=/trunk/; revision=34398
This commit is contained in:
Jeff Morriss 2010-10-06 21:54:01 +00:00
parent b151952474
commit 8947fc6a89
1 changed files with 6 additions and 3 deletions

View File

@ -1002,7 +1002,10 @@ sub check_hf_entries($$)
print STDERR "Warning: trailing space in field $name ($abbrev) in $filename\n";
}
if ("\"".$hf ."\"" eq $name) {
print STDERR "Warning: name is hf variable name in field $name ($abbrev) in $filename\n";
print STDERR "Warning: name is the hf_variable_name in field $name ($abbrev) in $filename\n";
}
if ("\"".$hf ."\"" eq $abbrev) {
print STDERR "Warning: abbreviation is the hf_variable_name in field $name ($abbrev) in $filename\n";
}
}
@ -1053,7 +1056,7 @@ my @apiGroups = qw(prohibited deprecated);
my @apiSummaryGroups = ();
my $check_value_string_array_null_termination = 1; # default: enabled
my $machine_readable_output = 0; # default: disabled
my $check_hf = 0; # default: disabled
my $check_hf = 1; # default: enabled
my $debug_flag = 0;
my $result = GetOptions(
@ -1061,7 +1064,7 @@ my $result = GetOptions(
'summary-group=s' => \@apiSummaryGroups,
'check-value-string-array-null-termination!' => \$check_value_string_array_null_termination,
'Machine-readable' => \$machine_readable_output,
'hf' => \$check_hf,
'nohf' => \$check_hf,
'debug' => \$debug_flag
);
if (!$result) {