Fix global header exclusion regex
Make the dot explicit in global header exclusion regex.
Ensure that '.h' states in the end of file name and support
paths.
Amends 50b55b89f3
Change-Id: I25b3d2fb54ed606a0b0806a10dbcb4ce1c65d2d8
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
d804d21e8f
commit
766d5d168f
@ -336,7 +336,7 @@ sub check_header {
|
|||||||
return if ($ignore_for_include_check{$header});
|
return if ($ignore_for_include_check{$header});
|
||||||
if ($public_header) {
|
if ($public_header) {
|
||||||
$header_skip_qt_begin_namespace_test = $header &&
|
$header_skip_qt_begin_namespace_test = $header &&
|
||||||
($ignore_for_qt_begin_namespace_check{$header} || $header =~ /qt\w+global.h/);
|
($ignore_for_qt_begin_namespace_check{$header} || $header =~ m,(^|/)qt\w+global\.h$,);
|
||||||
}
|
}
|
||||||
|
|
||||||
local $/ = "\x0a";
|
local $/ = "\x0a";
|
||||||
|
Loading…
Reference in New Issue
Block a user