Skip to content
Permalink
Browse files

MOC compatible SIP_ABSTRACT version

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 69a28d823f332cd56703d23376fc670fadbb4a40
Showing with 1 addition and 0 deletions.
  1. +1 −0 scripts/sipify.pl
@@ -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;

0 comments on commit 69a28d8

Please sign in to comment.
You can’t perform that action at this time.