Skip to content

Commit

Permalink
[sipify] Force newlines after sip commands
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 7, 2017
1 parent 29fd5cc commit f82997c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions python/core/qgsclipper.sip
Expand Up @@ -13,6 +13,7 @@

%Feature ARM // Some parts are not available in sip bindings on ARM because of qreal double vs. float issues


class QgsClipper
{
%Docstring
Expand Down Expand Up @@ -47,6 +48,7 @@ class QgsClipper
};

%If (!ARM) // Not available on ARM sip bindings because of qreal issues

static void trimFeature( QVector<double> &x,
QVector<double> &y,
bool shapeOpen );
Expand All @@ -62,6 +64,7 @@ class QgsClipper
%End

%End

static void trimPolygon( QPolygonF &pts, const QgsRectangle &clipRect );

static QPolygonF clippedLine( const QgsCurve &curve, const QgsRectangle &clipExtent );
Expand Down
1 change: 1 addition & 0 deletions python/core/qgspropertytransformer.sip
Expand Up @@ -136,6 +136,7 @@ class QgsPropertyTransformer
else
sipType = sipType_QgsPropertyTransformer;
%End

public:

enum Type
Expand Down
6 changes: 3 additions & 3 deletions scripts/sipify.pl
Expand Up @@ -64,11 +64,11 @@ sub processDoxygenLine
#print $line;

if ($line =~ m/^\s*SIP_FEATURE\( (\w+) \)(.*)$/){
print "%Feature $1$2";
print "%Feature $1$2\n";
next;
}
if ($line =~ m/^\s*SIP_IF_FEATURE\( (\!?\w+) \)(.*)$/){
print "%If ($1)$2";
print "%If ($1)$2\n";
next;
}
if ($line =~ m/^\s*SIP_CONVERT_TO_SUBCLASS_CODE(.*)$/){
Expand All @@ -77,7 +77,7 @@ sub processDoxygenLine
}

if ($line =~ m/^\s*SIP_END(.*)$/){
print "%End$1";
print "%End$1\n";
next;
}

Expand Down
1 change: 1 addition & 0 deletions tests/scripts/sipifyheader.expected.sip
Expand Up @@ -58,6 +58,7 @@ class QgsSipifyHeader : QtClass<QVariant>
else
sipType = sipType_QgsStandardSipifyHeader;
%End

public:
enum MyEnum
{
Expand Down

0 comments on commit f82997c

Please sign in to comment.