Parse valgrind logs for suppressions.
The tool takes at least one file as input and parses it for valgrind suppressions. If more than one file is provided, the suppressions of each file are concatenated.
Every suppression is only written out once. Duplicates are ignored.
Let's say you have two valgrind logs in your current working directory:
- file1.log
- file2.log
You can call the valgrind-parser
like this:
python3 valgrind-parser.py file1.log file2.log
The parser reads from the file until it finds a valgrind suppression, starting with "{" and ending with "}". Everything outside the suppressions is ignored.