分析gcc/llvm输出
gccoutputparser的Python项目详细描述
gccoutputparser
一个简单的GCC/LLVM(clang)输出解析器它从编译器中读取行并 makefile在 统一格式。
可以配置您想要的内容:访问pased信息? 柜台受影响的文件?
安装
通过pip简单地安装此模块(还支持python 2的pip)
pip3 install --user gccoutputparser
前言
当正常输出转到 标准输出。
用法
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')