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
This commit is contained in:
Matthias Kuhn 2017-11-01 18:55:09 +01:00
parent 295a578e2e
commit 69a28d823f

View File

@ -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;