From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 24 Jul 2025 21:36:11 +0000 (+0200) Subject: [3.14] Exclude _testclinic_depr.c.h from c-analyzer (GH-137086) (#137089) X-Git-Tag: v3.14.0rc2~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d996cb6700ebc93b6b5f4dbe0a7e31875aa861f9;p=thirdparty%2FPython%2Fcpython.git [3.14] Exclude _testclinic_depr.c.h from c-analyzer (GH-137086) (#137089) Exclude _testclinic_depr.c.h from c-analyzer (GH-137086) _testclinic.c mocks out PY_VERSION_HEX to 3.8 before including _testclinic_depr.c.h to avoid the errors the preprocessor would otherwise throw due to the deprecation feature it is testing. (cherry picked from commit d5e75c07682864e9d265e11f5e4730147e7d4842) Co-authored-by: Zachary Ware --- diff --git a/Tools/c-analyzer/cpython/_parser.py b/Tools/c-analyzer/cpython/_parser.py index cfbf0d143484..1e754040eaf1 100644 --- a/Tools/c-analyzer/cpython/_parser.py +++ b/Tools/c-analyzer/cpython/_parser.py @@ -83,6 +83,8 @@ Python/frozen_modules/*.h Python/generated_cases.c.h Python/executor_cases.c.h Python/optimizer_cases.c.h +# XXX: Throws errors if PY_VERSION_HEX is not mocked out +Modules/clinic/_testclinic_depr.c.h # not actually source Python/bytecodes.c