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

Class Clinic

Tools/clinic/libclinic/app.py:37–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35
36
37class Clinic:
38
39 presets_text = """
40preset block
41everything block
42methoddef_ifndef buffer 1
43docstring_prototype suppress
44parser_prototype suppress
45cpp_if suppress
46cpp_endif suppress
47
48preset original
49everything block
50methoddef_ifndef buffer 1
51docstring_prototype suppress
52parser_prototype suppress
53cpp_if suppress
54cpp_endif suppress
55
56preset file
57everything file
58methoddef_ifndef file 1
59docstring_prototype suppress
60parser_prototype suppress
61impl_definition block
62
63preset buffer
64everything buffer
65methoddef_ifndef buffer 1
66impl_definition block
67docstring_prototype suppress
68impl_prototype suppress
69parser_prototype suppress
70
71preset partial-buffer
72everything buffer
73methoddef_ifndef buffer 1
74docstring_prototype block
75impl_prototype suppress
76methoddef_define block
77parser_prototype block
78impl_definition block
79
80"""
81
82 def __init__(
83 self,
84 language: CLanguage,
85 printer: BlockPrinter | None = None,
86 *,
87 filename: str,
88 limited_capi: bool,
89 verify: bool = True,
90 ) -> None:
91 # maps strings to Parser objects.
92 # (instantiated from the "parsers" global.)
93 self.parsers: dict[str, Parser] = {}
94 self.language: CLanguage = language

Callers 4

_make_clinicFunction · 0.90
_test_clinicMethod · 0.90
parse_fileFunction · 0.90

Calls

no outgoing calls

Tested by 3

_make_clinicFunction · 0.72
_test_clinicMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…