Skip to content

Commit 5aac851

Browse files
gh-90110: Get the C Analyzer Tool Working Again (gh-96057)
We broke it with a recent `_PyArg_Parser` change. Also: * moved the `_PyArg_Parser` whitelist entries over to ignored.tsv now that they are thread-safe * added some known globals from a currently-excluded file * dropped some outdated globals from the whitelist
1 parent d8c07f8 commit 5aac851

File tree

3 files changed

+383
-579
lines changed

3 files changed

+383
-579
lines changed

Tools/c-analyzer/cpython/_parser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def clean_lines(text):
141141
Objects/**/*.c Py_BUILD_CORE 1
142142
143143
Modules/_asynciomodule.c Py_BUILD_CORE 1
144+
Modules/_codecsmodule.c Py_BUILD_CORE 1
144145
Modules/_collectionsmodule.c Py_BUILD_CORE 1
145146
Modules/_ctypes/_ctypes.c Py_BUILD_CORE 1
146147
Modules/_ctypes/cfield.c Py_BUILD_CORE 1
@@ -293,6 +294,10 @@ def clean_lines(text):
293294
]
294295

295296
MAX_SIZES = {
297+
# GLOB: (MAXTEXT, MAXLINES),
298+
# First match wins.
299+
_abs('Include/internal/pycore_global_strings.h'): (5_000, 1000),
300+
_abs('Include/internal/pycore_runtime_init_generated.h'): (5_000, 1000),
296301
_abs('Include/**/*.h'): (5_000, 500),
297302
_abs('Modules/_ctypes/ctypes.h'): (5_000, 500),
298303
_abs('Modules/_datetimemodule.c'): (20_000, 300),

0 commit comments

Comments
 (0)