vbvictor wrote: > In this case when looking at the type of Data the IntPtr type does not > appear, only int*
This is a known "problem" of clang with preserving type sugar. TL;DR currently there is no way to get `IntPtr` as you need. There is work in progress to preserve `IntPtr` through all AST, here is an example from an experimental branch: https://godbolt.org/z/K5jno7os8. With `clang (resugar)` you can see that `const IntPtr *` used everywhere instead of `int *const *`. There is an issue https://github.com/llvm/llvm-project/issues/144510 with the same problem you describe. Speaking about your patch, you could add this case to Limitations and ignore it or postpone changes until "resugar patch" is fully landed in `clang` (though I don't know how much time it will take). https://github.com/llvm/llvm-project/pull/147060 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits