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

Function get_preprocessor

Tools/c-analyzer/cpython/_parser.py:361–386  ·  view source on GitHub ↗
(*,
                     file_macros=None,
                     file_includes=None,
                     file_incldirs=None,
                     file_same=None,
                     **kwargs
                     )

Source from the content-addressed store, hash-verified

359
360
361def get_preprocessor(*,
362 file_macros=None,
363 file_includes=None,
364 file_incldirs=None,
365 file_same=None,
366 **kwargs
367 ):
368 macros = tuple(MACROS)
369 if file_macros:
370 macros += tuple(file_macros)
371 includes = tuple(INCLUDES)
372 if file_includes:
373 includes += tuple(file_includes)
374 incldirs = tuple(INCL_DIRS)
375 if file_incldirs:
376 incldirs += tuple(file_incldirs)
377 samefiles = dict(SAME)
378 if file_same:
379 samefiles.update(file_same)
380 return _get_preprocessor(
381 file_macros=macros,
382 file_includes=includes,
383 file_incldirs=incldirs,
384 file_same=samefiles,
385 **kwargs
386 )
387
388
389def parse_file(filename, *,

Callers 2

parse_fileFunction · 0.70
parse_filesFunction · 0.70

Calls 2

_get_preprocessorFunction · 0.90
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…