davidmalcolm / gcc-python-plugin

GCC plugin that embeds CPython inside the compiler
GNU General Public License v3.0
199 stars 58 forks source link

only do reference count checking when Python.h is included #51

Closed davidmalcolm closed 7 years ago

davidmalcolm commented 7 years ago

If I run cpychecker on gdb, I get many reports of the form:

../../src/gdb/arm-linux-tdep.c: In function ‘arm_linux_init_abi’: ../../src/gdb/arm-linux-tdep.c:1060:1: note: this function is too complicated for the reference-count checker to fully analyze: not all paths were analyzed

Many of these occur in files that do not use Python at all. As we discussed on the list, it would make sense for cpychecker to simply ignore compilations where Python.h is not included.

davidmalcolm commented 7 years ago

Imported from trac issue 11. Created by tromey on 2012-01-04T14:55:43, last modified: 2012-02-14T17:23:22

davidmalcolm commented 7 years ago

Trac comment by dmalcolm on 2012-02-14 17:23:22:

Implemented in 073d390de53ef52136bd90e5ac06f1ef833d047d