You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Makes bindgen believe that cmdline_token_ops is defined insidecmdline_token_hdr. The reason is that clang inserts a RecorDecl cursor before the field declaration, which we parse thinking it is declared as a child.
We should probably treat this as an unresolved type reference, but that has the unexpected side effect of making the inner_items of a struct/class ResolvedTyperefs, for which we don't generate code.
I believe generating code for them would be ok because we track all the types seen so far, but worth re-checking.
Unfortunately using this super-naive approach would regress other stuff like:
Noticed while reviewing #468, the following code:
Makes bindgen believe that
cmdline_token_ops
is defined insidecmdline_token_hdr
. The reason is that clang inserts aRecorDecl
cursor before the field declaration, which we parse thinking it is declared as a child.We should probably treat this as an unresolved type reference, but that has the unexpected side effect of making the
inner_items
of a struct/classResolvedTyperefs
, for which we don't generate code.I believe generating code for them would be ok because we track all the types seen so far, but worth re-checking.
Unfortunately using this super-naive approach would regress other stuff like:
So I'll have to think a bit harder about how to address this. Probably checking and ignoring non-definitions?
The text was updated successfully, but these errors were encountered: