I have followed the following step by step guide and I\'ve managed, after a bit of fiddling, to get clang to compile using code:blocks and MinGW. Great, so now I could add t
Depending on your version of MinGW (and thus the version of gcc ported), the headers might be scattered a bit...
In the file clang/lib/Frontend/InitHeaderSearch.cpp you will find a number of hard-coded paths. The trouble is that each is version specific, so if your version of MinGW is not in there, then feel free to add it (and ask for it to be integrated in Clang's mainline by posting the patch to cfe-commit).
Personally I run it on MinGW/msys with only minor issues (a number of test cases fail because my msys shell mangles the input when there are : in...), I have not tried using it from CodeBlocks though (I'm used to the command line).
If you wish to help, Takumi is watching over MinGW integration, Francois Pichet is leading the work on compatibility with VC++/MFC headers (ie is the main contributor) and @rubenvb is currently trying to push patches on libc++ to have it working on Windows (libc++ does not compile on Windows yet). The 3 areas are pretty much independent and require different skills and knowledge.