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

Function _get_preprocessor

Tools/c-analyzer/c_parser/preprocessor/__init__.py:252–258  ·  view source on GitHub ↗
(tool)

Source from the content-addressed store, hash-verified

250
251
252def _get_preprocessor(tool):
253 if tool is True:
254 tool = _get_default_compiler()
255 preprocess = _COMPILERS.get(tool)
256 if preprocess is None:
257 raise ValueError(f'unsupported tool {tool}')
258 return preprocess
259
260
261##################################

Callers 3

get_preprocessorFunction · 0.90
cmd_preprocessFunction · 0.70
preprocessFunction · 0.70

Calls 2

_get_default_compilerFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…