libclang help?


Not sure if I’m in the right place, but I’m after some help with ‘libclang’.

I am using it to generate C header file ‘wrappers’ for a 3rd party language, and it was working really well until I installed msvc 2015 the other day, after which it started producing slightly different code. Prior to that, I only had mingw64 installed so I am guessing that libclang has switched from using mingw system headers to msvc headers. Does this sound right? Is there any way to get libclang to go back to using mingw headers?

Also, I’m having a minor problem with clang_isConstQualifiedType with function pointers parameters. It works fine with ordinary function parameters, but always seems to return 0 for function pointer parameters. I’ve got around it for now by checking whether clang_typeSpelling starts with "const " but is there a better way to do this?

Again, apologies if this is the wrong newsgroup - is there a more suitable one perhaps?

Thanks in advance for any advice.