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

Function _iter_preprocessed

Tools/c-analyzer/c_parser/preprocessor/__main__.py:59–68  ·  view source on GitHub ↗
(filename, *,
                       get_preprocessor,
                       match_kind=None,
                       pure=False,
                       )

Source from the content-addressed store, hash-verified

57
58
59def _iter_preprocessed(filename, *,
60 get_preprocessor,
61 match_kind=None,
62 pure=False,
63 ):
64 preprocess = get_preprocessor(filename)
65 for line in preprocess(tool=not pure) or ():
66 if match_kind is not None and not match_kind(line.kind):
67 continue
68 yield line
69
70
71#######################################

Callers 1

cmd_preprocessFunction · 0.85

Calls 3

match_kindFunction · 0.85
get_preprocessorFunction · 0.70
preprocessFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…