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

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Jan 26 11:00:51 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.

This pull request has now been integrated.

Changeset: 40e19791
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.org/jextract/commit/40e197911eda0e2fc1ccad0a564041b3e62a44e6
Stats:     24 lines in 5 files changed: 13 ins; 5 del; 6 mod

7903644: typedef of anonymous struct generates a redundant class

Reviewed-by: jvernee

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

PR: https://git.openjdk.org/jextract/pull/195


More information about the jextract-dev mailing list