Skip to content

Commit

Permalink
[sipify] fix QMap/Qlist with init in header
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 4, 2018
1 parent 70f9c22 commit a09b9e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/sipify.pl
Expand Up @@ -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;
}

Expand Down

0 comments on commit a09b9e7

Please sign in to comment.