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

Function iter_decls_tsv

Tools/c-analyzer/c_parser/datafiles.py:85–91  ·  view source on GitHub ↗
(infile, extracolumns=None, relroot=fsutil.USE_CWD)

Source from the content-addressed store, hash-verified

83# tsv
84
85def iter_decls_tsv(infile, extracolumns=None, relroot=fsutil.USE_CWD):
86 if relroot and relroot is not fsutil.USE_CWD:
87 relroot = os.path.abspath(relroot)
88 for info, extra in _iter_decls_tsv(infile, extracolumns):
89 decl = _info.Declaration.from_row(info)
90 decl = decl.fix_filename(relroot, formatted=False, fixroot=False)
91 yield decl, extra
92
93
94def write_decls_tsv(decls, outfile, extracolumns=None, *,

Callers

nothing calls this directly

Calls 4

_iter_decls_tsvFunction · 0.85
abspathMethod · 0.45
from_rowMethod · 0.45
fix_filenameMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…