RFR: 7903644: typedef of anonymous struct generates a redundant class

Jorn Vernee jvernee at openjdk.org
Thu Jan 25 20:38:48 UTC 2024


On Thu, 25 Jan 2024 17:24:45 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> This PR tweaks jextract so that typedefs of anonymous structs only generate one class (that of the struct).
> 
> This required some changes in both `NameMangler` (to make sure that the special naming rule was applied), and then in `OutputFactory`, to make sure that in such case the typedef class is not emitted.
> 
> I've tweaked a number of tests which now reflect the "less verbose" jextract output - as such I don't think we need to add further tests.

Marked as reviewed by jvernee (Committer).

-------------

PR Review: https://git.openjdk.org/jextract/pull/195#pullrequestreview-1844635774


More information about the jextract-dev mailing list