[cfe-dev] libclang on 64-bit Ubuntu treats size_t as int

Gregory Junker via cfe-dev cfe-dev at lists.llvm.org
Tue Aug 16 22:51:52 PDT 2016


Hi

We are using libclang to parse header files and post-processing the AST. 
On Ubuntu 16.04 64-bit with the clang+llvm 3.8 download, I am seeing 
size_t come out of clang_getTypeSpelling as an int, even if I supply 
-m64 as an arg to the compiler. This seems to work fine on macOS and 
Windows, both 64-bit.

Any thoughts?

Thanks
Greg



More information about the cfe-dev mailing list