Execute make, cmake, maven and parses gcc/llvm output
Project description
Build Driver
Possible integration into build:
Building project-foo, this may take a while
Compiling failed for compilation unit 'lib-bar'
Error: ‘stderr’ undeclared (first use in this function) in function qux.c line 23
The complete build log is available at '/tmp/build-392193.log'
A simple GCC/LLVM (clang) output parser. It reads lines from compiler and makefile runs, parse, split them and provides parsed information in a harmonized format.
It is possible to configure what you want: access to the pased information? Counters? Affected files?
Installation
Simple install this module via pip (pip for Python 2 is also supported)
pip3 install --user gccoutputparser
Preface
GCC sends warnings and errors to standard error while normal output goes to standard output.
Usage
import gccoutputparser
e = gccoutputparser.GccOutputParser(working_directory=os.pwd())
e.feed()
stats = e.statistics()
number_warnings = len(e.warnings())
e.warnings(path_filter='path/matching/in')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
builddriver-0.4.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for builddriver-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23de159bda36fd046fc43e2cb13d93b5a080a323bc93b2bb42dbc2a9ab0a5d74 |
|
MD5 | e5a33f232a3f40b64943d0db30d0dcf2 |
|
BLAKE2b-256 | 96230b81856431279cef8f276db0ce6535309ba178284066e0c2525241022f6e |