Skip to content
Permalink
Browse files
[sipify] Also skip mutable protected members
  • Loading branch information
nyalldawson committed Apr 10, 2017
1 parent fc2581c commit 18c1e6233b93b1d94a45e8b132365a05e4332e57
Showing with 2 additions and 1 deletion.
  1. +1 −1 scripts/sipify.pl
  2. +1 −0 tests/scripts/sipifyheader.h
@@ -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;
}

@@ -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:

0 comments on commit 18c1e62

Please sign in to comment.