Skip to content
Permalink
Browse files
[sipify] skip protected members
  • Loading branch information
3nids committed Apr 5, 2017
1 parent 9a05951 commit d7014846f1c65d7c7a5c875f33304df14d8fdbaa
Showing with 9 additions and 0 deletions.
  1. +5 −0 scripts/sipify.pl
  2. +1 −0 tests/scripts/sipifyheader.expected.sip
  3. +3 −0 tests/scripts/sipifyheader.h
@@ -276,6 +276,11 @@ sub processDoxygenLine
next;
}

# skip non-method member declaration (e.g. in protected sections)
if ( $SIP_RUN != 1 && $line =~ m/^\s*\w+(::\w+)? \*?\w+( = \w+(\([^()]+\))?)?;/){
next;
}

# catch Q_DECLARE_FLAGS
if ( $line =~ m/^(\s*)Q_DECLARE_FLAGS\(\s*(.*?)\s*,\s*(.*?)\s*\)\s*$/ ){
$line = "$1typedef QFlags<$classname::$3> $2;\n";
@@ -160,6 +160,7 @@ complex default value and type (i.e. containing commas) should be given as a str
protected:
bool thisShouldBeListed();


private:
void privateMethodSIPRUNareShown();
public:
@@ -193,6 +193,9 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private QgsBaseCla
protected:
bool thisShouldBeListed();

Whatever skipMember;
Whatever::Something *alsoSkipMember = nullptr;

private:
void privateMethodAreNotShown();
#ifdef SIP_RUN

0 comments on commit d701484

Please sign in to comment.