MCPcopy Create free account
hub / github.com/python/cpython / analyze

Function analyze

Tools/c-analyzer/cpython/_analyzer.py:135–153  ·  view source on GitHub ↗
(filenames, *,
            skip_objects=False,
            **kwargs
            )

Source from the content-addressed store, hash-verified

133
134
135def analyze(filenames, *,
136 skip_objects=False,
137 **kwargs
138 ):
139 if skip_objects:
140 # XXX Set up a filter.
141 raise NotImplementedError
142
143 known = read_known()
144
145 decls = iter_decls(filenames)
146 results = _c_analyzer.analyze_decls(
147 decls,
148 known,
149 analyze_resolved=analyze_resolved,
150 )
151 analysis = Analysis.from_results(results)
152
153 return analysis
154
155
156def iter_decls(filenames, **kwargs):

Callers

nothing calls this directly

Calls 3

from_resultsMethod · 0.80
read_knownFunction · 0.70
iter_declsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…