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

Function read_decls

Tools/c-analyzer/c_parser/datafiles.py:46–51  ·  view source on GitHub ↗
(infile, fmt=None)

Source from the content-addressed store, hash-verified

44
45
46def read_decls(infile, fmt=None):
47 if fmt is None:
48 fmt = _get_format(infile)
49 read_all, _ = _get_format_handlers('decls', fmt)
50 for decl, _ in read_all(infile):
51 yield decl
52
53
54def write_decls(decls, outfile, fmt=None, *, backup=False):

Callers

nothing calls this directly

Calls 2

_get_formatFunction · 0.85
_get_format_handlersFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…