What is the best way to get the emitted compilation warnings and errors in a structured format (e.g. XML file, or similar) when using clang?

I'm aware of the command line option --serialize-diagnostics, but the serialized data format is binary and I found no description how to decode it.

My other option would be to write a clang plugin that can emit the warnings and errors by itself into e.g. XML.

What other options I have? Text parsing is not an option for me, I'd need the structured data right from clang.

share|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.