Integrated: 7903573: Jextract does not support atomic types

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Oct 20 20:52:57 UTC 2023


On Fri, 20 Oct 2023 13:17:23 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

> This PR fixes a crash when jextract processes atomic types. These types are exposed in libclang in a weird way: their kind is set to `Atomic` but they do not reveal what the underlying type is (except for the type spelling). The underlying type has to be discovered using the `clang_Type_getValueType` function on the `Atomic` type.
> 
> This PR does just that, and also adds a test for various atomic types.

This pull request has now been integrated.

Changeset: 466fd8ff
Author:    Maurizio Cimadamore <mcimadamore at openjdk.org>
URL:       https://git.openjdk.org/jextract/commit/466fd8ff5647a834e48cd19fbfcd3740555a28b1
Stats:     158 lines in 6 files changed: 158 ins; 0 del; 0 mod

7903573: Jextract does not support atomic types

Reviewed-by: jvernee

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

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


More information about the jextract-dev mailing list