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
- Host: GitHub
- URL: https://github.com/jvalcher/gcc_error_formatter
- Owner: jvalcher
- Created: 2024-06-27T04:46:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-26T14:27:01.000Z (over 1 year ago)
- Last Synced: 2025-03-26T15:35:01.840Z (over 1 year ago)
- Topics: error-formatting, gcc
- Language: Python
- Homepage:
- Size: 831 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```