summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2016-09-26 14:22:28 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2016-09-27 11:22:06 +0000
commit99242a2dec07d2b299092354870cae391c80ce95 (patch)
treecb10a1289dd3de54db559472bbe765d0e63398b6 /bin
parent3379ace11b30d8e9a2c9b45789561ac44bf29c06 (diff)
downloadqtbase-99242a2dec07d2b299092354870cae391c80ce95.tar.gz
syncqt.pl: also allow digits in upper-case macro names
The check for Q_... macros used a regex that didn't allow digits; it thus failed to match Q_DECLARE_SHARED_NOT_MOVABLE_UNTIL_QT6(). Change-Id: I3f9339349aa21e2fea04a7f53d9d8e0903e4c65b Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/syncqt.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/syncqt.pl b/bin/syncqt.pl
index 93c962cf90..9dcc7fe4fd 100755
--- a/bin/syncqt.pl
+++ b/bin/syncqt.pl
@@ -224,7 +224,7 @@ sub classNames {
}
if($line) {
$line =~ s,//.*$,,; #remove c++ comments
- $line .= ";" if($line =~ m/^Q_[A-Z_]*\(.*\)[\r\n]*$/); #qt macro
+ $line .= ";" if($line =~ m/^Q_[A-Z_0-9]*\(.*\)[\r\n]*$/); #qt macro
$line .= ";" if($line =~ m/^QT_(BEGIN|END)_HEADER[\r\n]*$/); #qt macro
$line .= ";" if($line =~ m/^QT_(BEGIN|END)_NAMESPACE(_[A-Z]+)*[\r\n]*$/); #qt macro
$line .= ";" if($line =~ m/^QT_MODULE\(.*\)[\r\n]*$/); # QT_MODULE macro