[cfe-dev] Running clang programmatically

Geoff Levner via cfe-dev cfe-dev at lists.llvm.org
Tue Aug 28 02:36:09 PDT 2018


On Mar 16, 2010, at 9:10 PM, Stefan Seefeld <stefan.seefeld at gmail.com>
wrote:

> > 2) Where is the current error emitted, and how may I intercept it
> > programmatically ?
>
> Driver errors can't easily be intercepted at the moment, so they go to
> standard error. In the near future, all diagnostics will go through
> the diagnostic interface of CIndex.

Eight years later... Has any progress been made on this issue?

We use clang in an application to compile and execute code on the fly, and
I cannot find any way to get ahold of compilation errors. They always go to
standard error.

Thanks,
Geoff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180828/34bd3414/attachment.html>


More information about the cfe-dev mailing list