[PATCH] D61716: [libclang] Expose AtomicType

Henry Jen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 23 11:12:17 PDT 2019


slowhog edited projects, added clang-c; removed clang.
slowhog removed reviewers: yvvan, jbcoe.
slowhog added a comment.
Herald added a project: clang.

Hi,

We use libclang in OpenJDK project Panama for a tool, jextract, to read C header files and generate Java bindings. It's critical for us to be able get the "real" underlying type.

Currently type like _Atomic(int) are not exposed, and libclang will give us a type kind of CXType_Unexposed, and we need a way to get the value type of CXType_Int .

Is there an existing way to do that? I have tried to call clang_getCanonicalType on the unexposed type, but that return the same unexposed type.

Please let me know if the proposed patch is on the right track or not, I would appreciate guidance to get this issue solved.


Repository:
  rC Clang

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61716/new/

https://reviews.llvm.org/D61716





More information about the cfe-commits mailing list