Skip to content

jvalcher/gcc_error_formatter

Repository files navigation

GCC error formatter

Overview

  • Uses the -fdiagnostics-format=json flag
  • Works with Make et al. as long as the only [{ JSON objects }] in the output are GCC's

Usage

from format_gcc_output import format_gcc_output

command = 'g++ -Wall -Wextra -fdiagnostics-format=json test2.cpp'

format_gcc_output (command)

Color configuration

Personalize the colors at the top of format_gcc_output.py with the values in colors.py.

Development

$ ./run_tests
$ ./get_unformatted_errors

About

Produces easy-to-read GCC error messages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published