We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27b3ffc commit 8f433f1Copy full SHA for 8f433f1
1 file changed
helper.pl
@@ -54,6 +54,11 @@ sub check_source {
54
push @{$troubles->{unwanted_strcmp}}, $lineno if $file =~ /^src\/.*\.c$/ && $l =~ /\bstrcmp\s*\(/;
55
push @{$troubles->{unwanted_clock}}, $lineno if $file =~ /^src\/.*\.c$/ && $l =~ /\bclock\s*\(/;
56
push @{$troubles->{unwanted_qsort}}, $lineno if $file =~ /^src\/.*\.c$/ && $l =~ /\bqsort\s*\(/;
57
+ if ($file =~ m|src/.*\.c$| &&
58
+ $file !~ m|src/math/.+_desc.c$| &&
59
+ $l =~ /^static\s+\S+\s+([^_][a-zA-Z0-9_]+)\s*\(/) {
60
+ push @{$troubles->{staticfunc_name}}, "$lineno($1)";
61
+ }
62
$lineno++;
63
}
64
for my $k (sort keys %$troubles) {
0 commit comments