An open API service indexing awesome lists of open source software.

https://github.com/jvalcher/gcc_error_formatter

Easy-to-read GCC error messages
https://github.com/jvalcher/gcc_error_formatter

error-formatting gcc

Last synced: about 1 year ago
JSON representation

Easy-to-read GCC error messages

Awesome Lists containing this project

README

          

# 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

```python
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

```bash
$ ./run_tests
```

```bash
$ ./get_unformatted_errors
```