Skip to content

Commit

Permalink
exclude injected headers from headersclean check
Browse files Browse the repository at this point in the history
it makes no sense to check them, as they contain only #defines anyway.

Change-Id: I8b36139ee19471de0654c5eb3af262d0389a72f7
Reviewed-by: Lars Knoll <[email protected]>
  • Loading branch information
ossilator committed Oct 14, 2016
1 parent aec9ceb commit 9a1163c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/syncqt.pl
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,6 @@ sub classNames {
$$requires = "";

my $ihdrbase = basename($iheader);
my $classname = $classnames{$ihdrbase};
push @ret, split(/,/, $classname) if ($classname);

my $parsable = "";
if(open(F, "<$iheader")) {
Expand Down Expand Up @@ -1042,7 +1040,11 @@ ($$)
&& $header =~ /_p\.h$/ && $subdir !~ /3rdparty/;
check_header($lib, $header, $iheader, $public_header, $private_header);
}
my @classes = $public_header && (!$minimal && $is_qt) ? classNames($iheader, \$clean_header, \$requires) : ();
my @classes = ();
push @classes, classNames($iheader, \$clean_header, \$requires)
if (!$shadow && $public_header && !$minimal && $is_qt);
my $classname = $classnames{$header};
push @classes, split(/,/, $classname) if ($classname);
if($showonly) {
print "$header [$lib]\n";
foreach(@classes) {
Expand Down

0 comments on commit 9a1163c

Please sign in to comment.