<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 16, 2016 at 10:51 PM, Gregory Junker via cfe-dev <span dir="ltr"><<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
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.<br>
<br>
Any thoughts?<br></blockquote><div><br></div><div>Treating a type as `int` often indicates failure to #include something.  What do you get for decltype(sizeof(1)) ?</div><div><br></div><div>I don't expect that Clang would ever select `int` (a signed type) for its size_t; this seems much more likely to be a library/code problem.  But I could be wrong.</div><div><br></div><div>-- James</div><div><br></div></div></div></div>