MCPcopy Index your code
hub / github.com/python/cpython / is_process_global

Function is_process_global

Tools/c-analyzer/c_analyzer/match.py:61–72  ·  view source on GitHub ↗
(vardecl)

Source from the content-addressed store, hash-verified

59
60
61def is_process_global(vardecl):
62 kind, storage, _, _, _ = _info.get_parsed_vartype(vardecl)
63 if kind is not _KIND.VARIABLE:
64 raise NotImplementedError(vardecl)
65 if 'static' in (storage or ''):
66 return True
67
68 if hasattr(vardecl, 'parent'):
69 parent = vardecl.parent
70 else:
71 parent = vardecl.get('parent')
72 return not parent
73
74
75def is_fixed_type(vardecl):

Callers 1

_check_typedepFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…