Take this code for example:
typedef struct {
int a;
} M;
int foo(const M bar);
Right now, crefl can't reproduce the signature for the foo function because the bar parameter is of type "qualifier(struct)" instead of "qualifier(typedef(struct))". Since the structure is anonymous, the only way to call this function is to use the typedef but this is not what crefl has stored in its database.
So, is there a way to find out the typedef's decl_ref for an anonymous structure's decl_ref ?
Or better, would it be possible for crefl to store the parameter as a typedef instead of a struct at first ?
Take this code for example:
Right now, crefl can't reproduce the signature for the
foofunction because thebarparameter is of type "qualifier(struct)" instead of "qualifier(typedef(struct))". Since the structure is anonymous, the only way to call this function is to use the typedef but this is not what crefl has stored in its database.So, is there a way to find out the typedef's
decl_reffor an anonymous structure'sdecl_ref?Or better, would it be possible for crefl to store the parameter as a typedef instead of a struct at first ?