-fdiagnostics-format=json
flag[{
JSON objects }]
in the output are GCC'sfrom format_gcc_output import format_gcc_output
command = 'g++ -Wall -Wextra -fdiagnostics-format=json test2.cpp'
format_gcc_output (command)
Personalize the colors at the top of format_gcc_output.py
with the values in colors.py
.
$ ./run_tests
$ ./get_unformatted_errors