GNOME Bugzilla – Bug 659851
"Rename to:" annotation needs to be converted to the proper style or gtk-doc needs to be patched to handle it
Last modified: 2015-02-07 16:54:20 UTC
If I have: /** * soup_buffer_new_take: * @data: (array length=length) (transfer full): data * @length: length of @data * * Creates a new #SoupBuffer containing @length bytes from @data. * * This function is exactly equivalent to soup_buffer_new() with * %SOUP_MEMORY_TAKE as first argument; it exists mainly for * convenience and simplifying language bindings. * * Return value: the new #SoupBuffer. * * Since: 2.32 * Rename to: soup_buffer_new **/ gtk-doc complains: ../../libsoup/soup-message-body.c:126: warning: multi-line since docs found but if I swap the order of the "Since" and "Rename to" tags, it's fine
(adding a blank line doesn't help either)
Rename to: is not a gtk-doc tag and thus gets interpreted as part of the since: tag. If you want to add your own 'tags' have them at the end of the body part.
note that "Rename to" is a valid gobject-introspection annotation...
Well, they should probably have talked to me then regarding the format. So far the syntax was different. This annotation would be written as /** * soup_buffer_new_take: (rename-to soup_buffer_new) * @data: (array length=length) (transfer full): data * ... */ I'll discuss it will the gobject-introspection people
The GI folks want to keep that syntax and will make a patch for gtk-doc to handle it.
I have not got a patch so far. Reassigning to gi.
as of yesterday g-ir-scanner understands the syntax from comment #4 : /** * soup_buffer_new_take: (rename-to soup_buffer_new) * @data: (array length=length) (transfer full): data * ... */ and complains with deprecation warnings for the old syntax: * Rename to: soup_buffer_new Other than deprecation warnings, the old syntax is obviously still parsed by g-ir-scanner for backwards compatibility.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]