MCPcopy Create free account
hub / github.com/CMU-SAFARI/ramulator2 / parse_params_with_inheritance

Function parse_params_with_inheritance

python/ramulator/cpp_parser.py:264–274  ·  view source on GitHub ↗

Parse params from concrete file and recursive ordinary C++ bases. Returns (params, children) with base class contributions merged first.

(filepath, base_class, src_dir, interface_keys)

Source from the content-addressed store, hash-verified

262
263
264def parse_params_with_inheritance(filepath, base_class, src_dir, interface_keys):
265 """Parse params from concrete file and recursive ordinary C++ bases.
266
267 Returns (params, children) with base class contributions merged first.
268 """
269 params, children = _parse_class_with_bases(base_class, src_dir, interface_keys, set())
270
271 concrete_params, concrete_children = _parse_file_with_companion(filepath, interface_keys)
272 _merge_params_and_children(params, children, concrete_params, concrete_children)
273
274 return params, children
275
276
277def _parse_default(val_str, cpp_type):

Callers 1

generate_componentsFunction · 0.90

Calls 3

_parse_class_with_basesFunction · 0.85

Tested by

no test coverage detected