[PATCH] Add warning capabilities in LLVM (backend part)

Dmitri Gribenko gribozavr at gmail.com
Fri Nov 15 18:26:08 PST 2013


On Fri, Nov 15, 2013 at 5:51 PM, Quentin Colombet <qcolombet at apple.com> wrote:
> Finally the reporting API would be:
> void LLVMContext::report(DiagnosticInfo *, Kind, Severity)
> The default message would be given by toStr().

I doubt that Clang will be using this API.  For example, Clang has a
feature to serialize all diagnostics to a file, and the easiest way to
make it work with this feature to just let all diagnostics flow
through the usual diagnostics engine.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the llvm-commits mailing list