Integrated: 7903610: Missing handling for array fields with inline struct declaration

Maurizio Cimadamore mcimadamore at openjdk.org
Thu Dec 14 14:59:15 UTC 2023


On Thu, 14 Dec 2023 12:30:58 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> This patch adds a new method in `Utils` which helps visitors to obtain a scoped declaration given a type. This is used whenever the visitor logic needs to recurse on a declared type e.g. in a variable, or a typedef. The current logic only tests for `Type.Declared` and, in doing so, misses some cases, such as arrays and typedefs which point back to a declared type.

This pull request has now been integrated.

Changeset: 169664c5
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.org/jextract/commit/169664c50ebc44db211bbbe46dc5441d654163f8
Stats:     143 lines in 7 files changed: 119 ins; 11 del; 13 mod

7903610: Missing handling for array fields with inline struct declaration

Reviewed-by: jvernee

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

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


More information about the jextract-dev mailing list