- Uses the
-fdiagnostics-format=jsonflag - 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)Make sure that the shebang path at the top of the script points to your python's location.
$ cp gccf.py ~/.local/bin/gcf
$ gcf -Wall -Wextra -o my_app main.cPersonalize the colors at the top of gccf.py.
$ ./run_tests
$ ./get_unformatted_errors