- Uses the
-fdiagnostics-format=json
flag - Works with Make et al. as long as the only
[{
JSON objects}]
in the output are GCC's
from gccf import format_gcc_output
command = 'g++ -Wall -Wextra -fdiagnostics-format=json test2.cpp'
format_gcc_output (command)
Edit the gcc_cmd
string at the top of gccf.py
as needed and run.
$ python gccf.py
# Or as bash script
$ ./gccf.py # uses /usr/bin/python
Personalize the colors at the top of gccf.py
. More colors are available in colors.py
.
$ ./run_tests
$ ./get_unformatted_errors