ctest: support gcc `-fdiagnostics-format=json` and/or SARIF for less fragile extraction of warnings/errors
In 2019, GCC 9 added -fdiagnostics-format=json
which gives machine-readable output for warning/errors.
See:
https://developers.redhat.com/blog/2019/03/08/usability-improvements-in-gcc-9
Clang looks like it may follow suit with JSON and/or SARIF support:
https://lists.llvm.org/pipermail/cfe-dev/2021-March/067907.html
It would be nice if ctest & cdash would support this. It should be much less fragile that greping text output from the build process. It should allow for cdash to create nicer UI, like tabular lists of warnings/errors where you could sort by warning type, track the existence of a warning over time, de-duplicate repeated warnings, etc., etc.