Skip to content

Commit

Permalink
[sipify] Also skip mutable protected members
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 10, 2017
1 parent fc2581c commit 18c1e62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sipify.pl
Expand Up @@ -296,7 +296,7 @@ sub processDoxygenLine
}

# skip non-method member declaration in non-public sections
if ( $SIP_RUN != 1 && $ACCESS != PUBLIC && $line =~ m/^\s*[\w<>]+(::\w+)? \*?\w+( = \w+(\([^()]+\))?)?;/){
if ( $SIP_RUN != 1 && $ACCESS != PUBLIC && $line =~ m/^\s*(?:mutable\s)?[\w<>]+(::\w+)? \*?\w+( = \w+(\([^()]+\))?)?;/){
next;
}

Expand Down
1 change: 1 addition & 0 deletions tests/scripts/sipifyheader.h
Expand Up @@ -228,6 +228,7 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private Ui::QgsBas

Whatever skipMember;
Whatever::Something *alsoSkipMember = nullptr;
mutable Whatever alsoSkipThis;
Some<Other> memberToSkip;

private:
Expand Down

0 comments on commit 18c1e62

Please sign in to comment.