Skip to content
Permalink
Browse files

[sipify] fix QMap/Qlist with init in header

  • Loading branch information
3nids committed Feb 4, 2018
1 parent 70f9c22 commit a09b9e7af9a9b4bf4278012a727865dd8eb63951
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}

0 comments on commit a09b9e7

Please sign in to comment.
You can’t perform that action at this time.