Skip to main content

Parses gcc/llvm output

Project description

gccoutputparser

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


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gccoutputparser, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size gccoutputparser-0.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View
Filename, size gccoutputparser-0.1-py2.py3-none-any.whl (3.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page