[cfe-dev] custom rendering of diagnostics

Nathan Ridge zeratul976 at hotmail.com
Tue Jun 11 01:42:36 PDT 2013


Hi,

I would like to write a clang-based tool that renders diagnostics
in a custom way.

I figure that I need to write a custom DiagnosticConsumer, which
is fine, but I'm not sure what's the best way to set it all up.

I took a look at LibTooling, but I couldn't find a way to use a 
custom DiagnosticConsumer when running a ClangTool. Do I need to
set up a CompilerInstance manually to do this?

Thanks,
Nate 		 	   		  



More information about the cfe-dev mailing list