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

Function analyze

Tools/c-analyzer/cpython/__main__.py:225–239  ·  view source on GitHub ↗
(files, **kwargs)

Source from the content-addressed store, hash-verified

223 elif datacmd == 'dump':
224 known = _analyzer.KNOWN_FILE
225 def analyze(files, **kwargs):
226 decls = []
227 for decl in _analyzer.iter_decls(files, **kwargs):
228 if not KIND.is_type_decl(decl.kind):
229 continue
230 if not decl.filename.endswith('.h'):
231 if decl.shortkey not in _analyzer.KNOWN_IN_DOT_C:
232 continue
233 decls.append(decl)
234 results = _c_analyzer.analyze_decls(
235 decls,
236 known={},
237 analyze_resolved=_analyzer.analyze_resolved,
238 )
239 return _analyzer.Analysis.from_results(results)
240 else: # check
241 known = _analyzer.read_known()
242 def analyze(files, **kwargs):

Callers

nothing calls this directly

Calls 4

is_type_declMethod · 0.80
from_resultsMethod · 0.80
endswithMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…