Skip to content

Commit af984dc

Browse files
committed
exclude more sources from "static function check"
1 parent 1bf42ea commit af984dc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

helper.pl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ sub check_source {
5555
push @{$troubles->{unwanted_clock}}, $lineno if $file =~ /^src\/.*\.c$/ && $l =~ /\bclock\s*\(/;
5656
push @{$troubles->{unwanted_qsort}}, $lineno if $file =~ /^src\/.*\.c$/ && $l =~ /\bqsort\s*\(/;
5757
if ($file =~ m|src/.*\.c$| &&
58+
$file !~ m|src/ciphers/.*\.c$| &&
59+
$file !~ m|src/hashes/.*\.c$| &&
5860
$file !~ m|src/math/.+_desc.c$| &&
61+
$file !~ m|src/stream/sober128/sober128.c$| &&
5962
$l =~ /^static\s+\S+\s+([^_][a-zA-Z0-9_]+)\s*\(/) {
6063
push @{$troubles->{staticfunc_name}}, "$lineno($1)";
6164
}

0 commit comments

Comments
 (0)