(rename-to) not working when target name doesn't exist
$ g-ir-scanner --version g-ir-scanner 1.58.3
I added a (rename-to) annotation to a function. The renamed name does not exist (actually it does exist, but as a macro, hence is not introspected anyway.
Then I got a warning:
src/gimp/libgimpwidgets/gimpdialog.h:96: Warning: Gimp: Can't find symbol 'gimp_dialog_set_alternative_button_order' referenced by "rename-to" annotation
And as expected from this warning, the function was not renamed.
Yet the docs implies clearly that the target name can be or not already in use:
Rename the original symbol’s name to SYMBOL. If SYMBOL resolves to a symbol name that is already used, the original binding for that name is removed.
It would be nice if it could actually work as stated in the docs, especially since I see no reason why the target name should already exist. I can definitely see use cases where we'd want to rename a function for bindings to a name which doesn't exist (neither in function, macro nor otherwise). Thanks!