MCPcopy Create free account
hub / github.com/AMReX-Astro/Castro / make_variable_docstring

Function make_variable_docstring

Docs/add_doxy_headers.py:73–84  ·  view source on GitHub ↗
(description)

Source from the content-addressed store, hash-verified

71
72
73def make_variable_docstring(description):
74 description = re.sub(r"//", "", description).strip()
75 description = re.sub(r"\n[ ]*", "\n/// ", description)
76
77 if description == "":
78 return ""
79 else:
80 return f"""
81///
82/// {description}
83///
84"""
85
86
87def process_header_file(filename):

Callers 1

process_header_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected