Skip to content

Commit 14e949b

Browse files
committedApr 8, 2017
[sipify] skip non-public template based member declarations
1 parent d820702 commit 14e949b

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed
 

‎python/core/qgscolorramp.sip

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ class QgsLimitedRandomColorRamp : QgsColorRamp
440440
%End
441441

442442
protected:
443-
QList<QColor> mColors;
444443
};
445444

446445
class QgsRandomColorRamp: QgsColorRamp
@@ -498,7 +497,6 @@ class QgsRandomColorRamp: QgsColorRamp
498497

499498
protected:
500499

501-
QList<QColor> mPrecalculatedColors;
502500

503501
};
504502

@@ -710,7 +708,6 @@ class QgsColorBrewerColorRamp : QgsColorRamp
710708
Generates the scheme using the current name and number of colors
711709
%End
712710

713-
QList<QColor> mPalette;
714711
};
715712

716713

‎scripts/sipify.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ sub processDoxygenLine
295295
next;
296296
}
297297

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

‎tests/scripts/sipifyheader.expected.sip

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ Removing function body with namespaced return value
225225
:rtype: set of QgsActionScope
226226
%End
227227

228+
This<Member> shouldBeIncluded;
229+
228230
protected:
229231
bool thisShouldBeListed();
230232
%Docstring

‎tests/scripts/sipifyheader.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,14 @@ class CORE_EXPORT QgsSipifyHeader : public QtClass<QVariant>, private Ui::QgsBas
221221

222222
QSet<QgsActionScope> returnTypeSet();
223223

224+
This<Member> shouldBeIncluded;
225+
224226
protected:
225227
bool thisShouldBeListed();
226228

227229
Whatever skipMember;
228230
Whatever::Something *alsoSkipMember = nullptr;
231+
Some<Other> memberToSkip;
229232

230233
private:
231234
void privateMethodAreNotShown();

0 commit comments

Comments
 (0)
Please sign in to comment.