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
Here is an initial design for a type constructor context:
data TypeConstrContext =
...
| -- | Context for anonymous top-level structures/unions
--
-- Example: @typedef struct {...} *foo@
AnonTopLevelTypeConstrContext {
-- | Index (1-based) of anonymous top-level type constructors within the
-- translation unit
ctxAnonTopLevelTypeConstrIdx :: Word
}
Perhaps the default could create names like HsBindgenType1, which is similar to the Rust behavior?
Another option would be to use the variable name, like how we use field names when an anonymous structure is for a named field.
The text was updated successfully, but these errors were encountered: