Closed rhdunn closed 6 years ago
This also applies for:
struct foo { operator FILE *(); }
where cldoc produces:
<conversionfunction id="foo::operator struct _IO_FILE *" name="operator struct _IO_FILE *">
<return>
<type name="FILE" qualifier="*" />
</return>
</conversionfunction>
This should be fixed in latest master
. This information appears to only be exposed correctly from libclang 4.0 and upwards, it seems this can't work correctly (information not being exposed) in 3.9. I'm considering only supporting 4.0+.
Given:
The XML output expands the typedef in the return type:
In other contexts, e.g.:
the argument type preserves the typedef:
Both contexts should use the typedef alias. That is, the return type should be: