param_cleared, rosenberg: add underscored memset/cpy/zero() functions
[smatch.git] / smatch_scripts / find_expanded_holes.pl
blob3f38c6817d966d2df8356d57a9947b556842972e
1 #!/usr/bin/perl
3 use strict;
5 my $cur_struct = "";
6 my $printed = 0;
8 while (<>) {
9 if ($_ =~ /^struct (\w+) {/) {
10 $cur_struct = $1;
11 $printed = 0;
12 next;
14 if ($_ =~ /.* hole,.*/ && !$printed) {
15 print "$cur_struct\n";
16 $printed = 1;