summaryrefslogtreecommitdiffstats
path: root/Tools/c-analyzer/cpython/_parser.py
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-08-17 19:55:01 (GMT)
committerGitHub <noreply@github.com>2022-08-17 19:55:01 (GMT)
commit5aac85101b3b0285770bf5739a94cb26245b9eaf (patch)
tree43f5157cfa8679eb38bb96bd2b06483311106949 /Tools/c-analyzer/cpython/_parser.py
parentd8c07f8cb4eebbe4ed0f76ba98024313f76a181c (diff)
downloadcpython-5aac85101b3b0285770bf5739a94cb26245b9eaf.zip
cpython-5aac85101b3b0285770bf5739a94cb26245b9eaf.tar.gz
cpython-5aac85101b3b0285770bf5739a94cb26245b9eaf.tar.bz2
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
Diffstat (limited to 'Tools/c-analyzer/cpython/_parser.py')
-rw-r--r--Tools/c-analyzer/cpython/_parser.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/c-analyzer/cpython/_parser.py b/Tools/c-analyzer/cpython/_parser.py
index af223b1..14ab619 100644
--- a/Tools/c-analyzer/cpython/_parser.py
+++ b/Tools/c-analyzer/cpython/_parser.py
@@ -141,6 +141,7 @@ Parser/**/*.h Py_BUILD_CORE 1
Objects/**/*.c Py_BUILD_CORE 1
Modules/_asynciomodule.c Py_BUILD_CORE 1
+Modules/_codecsmodule.c Py_BUILD_CORE 1
Modules/_collectionsmodule.c Py_BUILD_CORE 1
Modules/_ctypes/_ctypes.c Py_BUILD_CORE 1
Modules/_ctypes/cfield.c Py_BUILD_CORE 1
@@ -293,6 +294,10 @@ SAME = [
]
MAX_SIZES = {
+ # GLOB: (MAXTEXT, MAXLINES),
+ # First match wins.
+ _abs('Include/internal/pycore_global_strings.h'): (5_000, 1000),
+ _abs('Include/internal/pycore_runtime_init_generated.h'): (5_000, 1000),
_abs('Include/**/*.h'): (5_000, 500),
_abs('Modules/_ctypes/ctypes.h'): (5_000, 500),
_abs('Modules/_datetimemodule.c'): (20_000, 300),