Skip to content

Commit

Permalink
MOC compatible SIP_ABSTRACT version
Browse files Browse the repository at this point in the history
New version supports the following notation

    class QgsOutClass : public QObject // SIP_ABSTRACT

MOC does not like lines like the following one and silently refuses to build the meta object for such classes

    class QgsOutClass : public QObject SIP_ABSTRACT
  • Loading branch information
m-kuhn committed Nov 1, 2017
1 parent 295a578 commit 69a28d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/sipify.pl
Expand Up @@ -210,6 +210,7 @@ sub remove_following_body_or_initializerlist {
sub fix_annotations {
my $line = $_[0];
# printed annotations
$line =~ s/\b\/\/\s*SIP_ABSTRACT\b/\/Abstract\//;
$line =~ s/\bSIP_ABSTRACT\b/\/Abstract\//;
$line =~ s/\bSIP_ALLOWNONE\b/\/AllowNone\//;
$line =~ s/\bSIP_ARRAY\b/\/Array\//g;
Expand Down

0 comments on commit 69a28d8

Please sign in to comment.