diff options
author | Colin Walters <walters@verbum.org> | 2015-10-10 18:08:37 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2015-10-10 18:08:37 -0400 |
commit | 2907b172fe9d1cb0648deff12bddc810141638ad (patch) | |
tree | 8c31c053c9a85558447b81909cc76815a1e7ec87 /giscanner | |
parent | df21d1f362a810f48a23b7c121bf09ce398539c7 (diff) | |
download | gobject-introspection-2907b172fe9d1cb0648deff12bddc810141638ad.tar.gz |
transformer: Strip out GLib _autoptr typedefs
They're just internal bits for users of C, shouldn't be part of the
API.
https://bugzilla.gnome.org/show_bug.cgi?id=755882
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/transformer.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py index d1fddaf1..fdb87f94 100644 --- a/giscanner/transformer.py +++ b/giscanner/transformer.py @@ -617,6 +617,9 @@ raise ValueError.""" target = ast.TYPE_ANY if name in ast.type_names: return None + # https://bugzilla.gnome.org/show_bug.cgi?id=755882 + if name.endswith('_autoptr'): + return None return ast.Alias(name, target, ctype=symbol.ident) else: raise NotImplementedError( |