Perhaps you can re use the infrastructure used in Clang for this. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130622/01d385b1/attachment.html>