Skip to content

Commit bbfe536

Browse files
committed
Fix check for generated files
1 parent 4585fde commit bbfe536

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎Tools/c-analyzer/cpython/_analyzer.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def _is_local_static_mutex(decl):
295295
return (vartype.typespec == 'PyMutex') and (decl.storage == 'static')
296296

297297
def _has_other_supported_type(decl):
298-
if hasattr(decl, 'file') and decl.file.filename.endswith('.c.h'):
298+
if hasattr(decl, 'file') and decl.file.filename.endswith(('.c.h', '.cpp.h')):
299299
assert 'clinic' in decl.file.filename, (decl,)
300300
if decl.name == '_kwtuple':
301301
return True

‎Tools/c-analyzer/cpython/ignored.tsv‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,9 @@ Modules/_zstd/_zstdmodule.c - _zstdmodule -
796796
Modules/clinic/md5module.c.h _md5_md5 _keywords -
797797
Modules/clinic/grpmodule.c.h grp_getgrgid _keywords -
798798
Modules/clinic/grpmodule.c.h grp_getgrnam _keywords -
799+
Modules/clinic/winsound.c.h winsound_Beep _keywords -
800+
Modules/clinic/winsound.c.h winsound_MessageBeep _keywords -
801+
Modules/clinic/winsound.c.h winsound_PlaySound _keywords -
799802
Objects/object.c - constants static PyObject*[]
800803
Objects/dictobject.c - PyFrozenDict_Type -
801804
Modules/_testcapi/unicode.c test_py_identifier PyId_hello -

0 commit comments

Comments
 (0)