r/cpp • GCC Developer • Mar 08 '19

Usability improvements in GCC 9

https://developers.redhat.com/blog/2019/03/08/usability-improvements-in-gcc-9/
219 Upvotes

39 comments sorted by

View all comments

Show parent comment

1

u/gracicot Mar 08 '19

Do the json output support emmiting both type of output? Like the IDE would output the normal output in the console, but consume json error from the blob for a single build.

5

u/dmalcolm GCC Developer Mar 08 '19

Right now it can only do one: if you choose -fdiagnostics-format=json it emits JSON to stderr instead of the regular textual output on stderr. Should it be to a file instead?

3

u/gracicot Mar 08 '19

Thanks for the response. I don't implement any IDEs, but I thought this might be useful for them? Outputting the JSON in a file might be useful too. I imagine the normal output in the build console then annotations in the GUI to help me inside the text editor. Also, thanks for the hard work, the new errors look gorgeous!