GNOME Bugzilla – Bug 743879
special case G_DECLARE_*_TYPE
Last modified: 2015-03-13 09:45:05 UTC
GLib master has new macro G_DECLARE_FINAL_TYPE and G_DECLARE_DERIVABLE_TYPE. I would imaging that G_DECLARE_INTERFACE_TYPE could be added later. They break gtkdoc-scan parsing. For example gliststore.h contains this: GLIB_AVAILABLE_IN_2_44 G_DECLARE_FINAL_TYPE(GListStore, g_list_store, G, LIST_STORE, GObject) gtkdoc-parse think that's the declaration of a function named "G_DECLARE_FINAL_TYPE" with return type "GLIB_AVAILABLE_IN_2_44". When ran with --rebuild-types it also won't see the _get_type() function. I think that should be special cased.
Created attachment 295968 [details] [review] scanner: special case G_DECLARE_*_TYPE
Created attachment 295982 [details] [review] scanner: special case G_DECLARE_*_TYPE
Created attachment 296034 [details] [review] scanner: special case G_DECLARE_*
Note that it already support G_DECLARE_INTERFACE as proposed on bug #743939
Created attachment 296042 [details] [review] scanner: special case G_DECLARE_*
Code pushed as wip/xclaesse/fixes-for-glib
The following fix has been pushed: 25d07c2 scanner: special case G_DECLARE_*