Exclude 'global' headers from QT_BEGIN_NAMESPACE check in syncqt.pl
Add 'global' headers to the ignore list of the QT_BEGIN_NAMESPACE
check. The QT_BEGIN/END_NAMESPACE use in some of global header files
makes no sense. This will suppress warnings caused by migration to
the generated cpp exports.
Amends b10e4e846e
Task-number: QTBUG-90492
Change-Id: Ic7e3f284263740021f86cade4dc19d810cb8fe02
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
1887c4ecc1
commit
50b55b89f3
@ -335,7 +335,8 @@ sub check_header {
|
||||
|
||||
return if ($ignore_for_include_check{$header});
|
||||
if ($public_header) {
|
||||
$header_skip_qt_begin_namespace_test = 1 if ($ignore_for_qt_begin_namespace_check{$header});
|
||||
$header_skip_qt_begin_namespace_test = $header &&
|
||||
($ignore_for_qt_begin_namespace_check{$header} || $header =~ /qt\w+global.h/);
|
||||
}
|
||||
|
||||
local $/ = "\x0a";
|
||||
|
Loading…
Reference in New Issue
Block a user