summaryrefslogtreecommitdiffstats
path: root/Tools/c-analyzer/cpython/_analyzer.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/c-analyzer/cpython/_analyzer.py')
-rw-r--r--Tools/c-analyzer/cpython/_analyzer.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tools/c-analyzer/cpython/_analyzer.py b/Tools/c-analyzer/cpython/_analyzer.py
index 4a11fc9..cfe5e75 100644
--- a/Tools/c-analyzer/cpython/_analyzer.py
+++ b/Tools/c-analyzer/cpython/_analyzer.py
@@ -287,6 +287,10 @@ def _is_kwlist(decl):
def _has_other_supported_type(decl):
+ if hasattr(decl, 'file') and decl.file.filename.endswith('.c.h'):
+ assert 'clinic' in decl.file.filename, (decl,)
+ if decl.name == '_kwtuple':
+ return True
vartype = str(decl.vartype).split()
if vartype[0] == 'struct':
vartype = vartype[1:]