[LLVMdev] [RFC] Add warning capabilities in LLVM.

Tobias Grosser tobias at grosser.es
Fri Jul 26 16:19:25 PDT 2013

On 07/25/2013 05:09 PM, Quentin Colombet wrote:
> Hi,
> I think we have a consensus on how we should report diagnostics now.
> For broader uses, the discussion is still open.
> To move forward on the diagnostic part, here is the plan:
> - Extend the current handler with a prototype like:
> void report(enum Kind, enum Classification, const char* msg)
> where
> - Kind is the kind of report: InlineAsm, StackSize, Other.
> - Classification is Error, Warning.
> - msg contains the fall back message to print in case the front-end do not know what to do with the report.

Hello Quentin,

could you explain how plugins would use your infrastructure? Would it be 
possible for a plugin to provide (limited) warnings/diagnostics without 
requiring clang/LLVM to be adapted?


More information about the llvm-dev mailing list