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

Function write_decls_tsv

Tools/c-analyzer/c_parser/datafiles.py:94–102  ·  view source on GitHub ↗
(decls, outfile, extracolumns=None, *,
                    relroot=fsutil.USE_CWD,
                    **kwargs
                    )

Source from the content-addressed store, hash-verified

92
93
94def write_decls_tsv(decls, outfile, extracolumns=None, *,
95 relroot=fsutil.USE_CWD,
96 **kwargs
97 ):
98 if relroot and relroot is not fsutil.USE_CWD:
99 relroot = os.path.abspath(relroot)
100 decls = (d.fix_filename(relroot, fixroot=False) for d in decls)
101 # XXX Move the row rendering here.
102 _write_decls_tsv(decls, outfile, extracolumns, kwargs)
103
104
105def _iter_decls_tsv(infile, extracolumns=None):

Callers

nothing calls this directly

Calls 3

_write_decls_tsvFunction · 0.85
abspathMethod · 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…