I have successfully compiled the ClangLib plugin but always crash at clang_getInclusions when they start to parse the project.Odd... Did you self-compile everything, or is this linking against a nightly?
Compiled myself with TDM GCC 4.6.1, CB svn 9760, LLVM + Clang 3.3 and your ClangLib plugin.
On small CB projects, ex. c++ Hello World it's working but on projects with wxWidgets always crash.
Do you have a special build steps to compile LLVM with gcc on Windows?
Oh, apologies; looks like I never got back to you on this.
For Windows, I use the prebuilt LLVM/Clang (3.4), and TDM GCC 4.8.1 to compile wxWidgets and Code::Blocks.
My guess from your crash is that clang_parseTranslationUnit()
is returning null (which it will do in the case of internal errors so extreme, it cannot recover), and then the null is passed to clang_getInclusions()
. Most likely, this is due to a compiler flag (and not your source code itself - clang seems fairly good at handling, or gracefully backing down, on any sort of code I have sent it). Could you post your full compile command line for the project that crashes?