Skip to content
Permalink
Browse files
[sipify] Force newlines after sip commands
  • Loading branch information
m-kuhn committed Apr 7, 2017
1 parent 29fd5cc commit f82997c4aa758664fed633d9f31e04d8e6ee95f1
Showing with 8 additions and 3 deletions.
  1. +3 −0 python/core/qgsclipper.sip
  2. +1 −0 python/core/qgspropertytransformer.sip
  3. +3 −3 scripts/sipify.pl
  4. +1 −0 tests/scripts/sipifyheader.expected.sip
@@ -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
@@ -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 );
@@ -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 );
@@ -136,6 +136,7 @@ class QgsPropertyTransformer
else
sipType = sipType_QgsPropertyTransformer;
%End

public:

enum Type
@@ -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(.*)$/){
@@ -77,7 +77,7 @@ sub processDoxygenLine
}

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

@@ -58,6 +58,7 @@ class QgsSipifyHeader : QtClass<QVariant>
else
sipType = sipType_QgsStandardSipifyHeader;
%End

public:
enum MyEnum
{

0 comments on commit f82997c

Please sign in to comment.