I use a (slightly old) self compiled version of Clang from their trunk. The Clang compiler I wrote has only been lightly tested (much if it is written based on pure documentation), so beware of errors.
Do you have an easy way/tool to convert/add this?
The absolute easiest way is to register it in
compilergcc.cpp as a normal compiler, then (build and) launch Code::Blocks, open the compiler settings, create (and delete) a new flag for the compiler (to make it think it has changed), and click OK. This will generate a fully usable file in your user data folder.
However, I usually uses my ListToolbox plugin, because with it, I can make the output look much nicer. (Using ListToolbox takes about equivalent effort as formatting one of each type of entry because of the way it chains commands.)
However (2), you could just apply this patch
(it also contains a fix for the loading of copied compilers whose flags have been changed, and slightly more along the lines of auto-detection routines for pure XML compilers).
Did you try what happens if you create a copy of a compiler? Dos that still work?
It does work except that copied compilers do not load user customized sets of compiler flags; this fixes it.