summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-07-09 12:57:13 -0700
committerThiago Macieira <thiago.macieira@intel.com>2015-10-15 16:20:37 +0000
commitc9e2763909c66a158bfe8043dd9fb7723b08b2f5 (patch)
tree152518d6bce2049512df6e721c14e93b33b21b3f
parentc401506ffc33053c4fe8b0e5ff492361653be12a (diff)
syncqt: complain if a public header includes a private one
We should even cause syncqt to exit, but that would cause developers trying to test something to be unable to. So leave it just with an "ERROR" message. That is hopefully enough. Change-Id: Ib056b47dde3341ef9a52ffff13ef5f8588b62b99 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
-rwxr-xr-xbin/syncqt.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/syncqt.pl b/bin/syncqt.pl
index c682cf318a..ff539f5fe0 100755
--- a/bin/syncqt.pl
+++ b/bin/syncqt.pl
@@ -1190,6 +1190,7 @@ if($check_includes) {
}
if ($include) {
if ($public_header) {
+ print STDERR "$lib: ERROR: $iheader includes private header $include\n" if ($include =~ /_p.h$/);
for my $trylib (keys(%modules)) {
if(-e "$out_basedir/include/$trylib/$include") {
print "$lib: WARNING: $iheader includes $include when it should include $trylib/$include\n";