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

Function main_for_filenames

Tools/c-analyzer/c_common/scriptutil.py:542–552  ·  view source on GitHub ↗
(filenames, process_filenames=None, relroot=fsutil.USE_CWD)

Source from the content-addressed store, hash-verified

540
541
542def main_for_filenames(filenames, process_filenames=None, relroot=fsutil.USE_CWD):
543 filenames, relroot = fsutil.fix_filenames(filenames, relroot=relroot)
544 for filename, relfile, check, show in _iter_filenames(filenames, process_filenames, relroot):
545 if show:
546 print()
547 print(relfile)
548 print('-------------------------------------------')
549 if (reason := check()):
550 print(reason)
551 continue
552 yield filename, relfile
553
554
555def _iter_filenames(filenames, process, relroot):

Callers 2

cmd_parseFunction · 0.90
cmd_preprocessFunction · 0.90

Calls 3

_iter_filenamesFunction · 0.85
fix_filenamesMethod · 0.80
checkFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…