[cfe-dev] clang C API version
Chris Lattner
clattner at apple.com
Tue Dec 14 22:55:43 PST 2010
On Dec 13, 2010, at 3:50 AM, Paul Curtis wrote:
> Hi All,
>
> I would like to build our software using both the clang 2.8 released API and
> the clang 2.9 WIP API. I can do that by #including the appropriate header
> file and setting a source-level pre-processor symbol to conditionally
> compile for 2.8 or 2.9--this is what I currently do, but it's not too
> pleasant for our build system.
>
> I just wondered what the project's policy is on setting an API revision
> number in a pre-processor symbol in the Index.h file for clients to query
> and adapt their API use accordingly?
Hi Paul,
I think that this is a good idea. However, it should be done at the LLVM level (i.e. a llvm-c/Version.h file). I think that there is some support for this in the autoconfigury scripts, but I don't know its status. I'd suggest asking on llvmdev.
-Chris
More information about the cfe-dev
mailing list