Skip to content

Commit f82997c

Browse files
committedApr 7, 2017
[sipify] Force newlines after sip commands
1 parent 29fd5cc commit f82997c

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed
 

‎python/core/qgsclipper.sip

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

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

16+
1617
class QgsClipper
1718
{
1819
%Docstring
@@ -47,6 +48,7 @@ class QgsClipper
4748
};
4849

4950
%If (!ARM) // Not available on ARM sip bindings because of qreal issues
51+
5052
static void trimFeature( QVector<double> &x,
5153
QVector<double> &y,
5254
bool shapeOpen );
@@ -62,6 +64,7 @@ class QgsClipper
6264
%End
6365

6466
%End
67+
6568
static void trimPolygon( QPolygonF &pts, const QgsRectangle &clipRect );
6669

6770
static QPolygonF clippedLine( const QgsCurve &curve, const QgsRectangle &clipExtent );

‎python/core/qgspropertytransformer.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ class QgsPropertyTransformer
136136
else
137137
sipType = sipType_QgsPropertyTransformer;
138138
%End
139+
139140
public:
140141

141142
enum Type

‎scripts/sipify.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ sub processDoxygenLine
6464
#print $line;
6565

6666
if ($line =~ m/^\s*SIP_FEATURE\( (\w+) \)(.*)$/){
67-
print "%Feature $1$2";
67+
print "%Feature $1$2\n";
6868
next;
6969
}
7070
if ($line =~ m/^\s*SIP_IF_FEATURE\( (\!?\w+) \)(.*)$/){
71-
print "%If ($1)$2";
71+
print "%If ($1)$2\n";
7272
next;
7373
}
7474
if ($line =~ m/^\s*SIP_CONVERT_TO_SUBCLASS_CODE(.*)$/){
@@ -77,7 +77,7 @@ sub processDoxygenLine
7777
}
7878

7979
if ($line =~ m/^\s*SIP_END(.*)$/){
80-
print "%End$1";
80+
print "%End$1\n";
8181
next;
8282
}
8383

‎tests/scripts/sipifyheader.expected.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class QgsSipifyHeader : QtClass<QVariant>
5858
else
5959
sipType = sipType_QgsStandardSipifyHeader;
6060
%End
61+
6162
public:
6263
enum MyEnum
6364
{

0 commit comments

Comments
 (0)
Please sign in to comment.