[cfe-dev] Getting CXType_Int and data size == 4 for uint64_t
Hayden Livingston via cfe-dev
cfe-dev at lists.llvm.org
Fri Sep 15 23:24:17 PDT 2017
I'm writing a simple parser tool using libclang and I noticed
something really odd.
For this simple file as I visit the cursors and call getType on them I
see that A is detected as CXType_Int and 4 bytes of size, but C is
also detected as CXType_Int and 4 bytes of size.
I did not expect this, am I doing something wrong?
#include <stdint.h>
struct TestStruct
{
uint32_t A;
const char *B;
uint64_t C;
};
More information about the cfe-dev
mailing list