diff --git a/scripts/sipify.pl b/scripts/sipify.pl index 0dcff3d3bbd..1364fbf73f7 100755 --- a/scripts/sipify.pl +++ b/scripts/sipify.pl @@ -405,9 +405,9 @@ sub detect_comment_block{ } # Detect if line is a non method member declaration -# https://regex101.com/r/gUBZUk/10 +# https://regex101.com/r/gUBZUk/13 sub detect_non_method_member{ - return 1 if $LINE =~ m/^\s*(?:template\s*<\w+>\s+)?(?:(const|mutable|static|friend|unsigned)\s+)*\w+(::\w+)?(<([\w<> *&,()]|::)+>)?(,?\s+\*?\w+( = (-?\d+(\.\d+)?|(\w+::)*\w+(\([^()]+\))?)|\[\d+\])?)+;/; + return 1 if $LINE =~ m/^\s*(?:template\s*<\w+>\s+)?(?:(const|mutable|static|friend|unsigned)\s+)*\w+(::\w+)?(<([\w<> *&,()]|::)+>)?(,?\s+\*?\w+( = (-?\d+(\.\d+)?|((QMap|QList)<[^()]+>\(\))|(\w+::)*\w+(\([^()]+\))?)|\[\d+\])?)+;/; return 0; }