MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / clang_format

Function clang_format

tools/generate.py:34–41  ·  view source on GitHub ↗
(buffer, **kwargs)

Source from the content-addressed store, hash-verified

32
33
34def clang_format(buffer, **kwargs):
35 return subprocess.run(f'{clang_format_path} -style=file',
36 capture_output=True,
37 shell=True,
38 check=True,
39 input=buffer.encode('utf-8'),
40 cwd=work_dir,
41 **kwargs).stdout.decode('utf-8')
42
43
44def api_generate(input_path: Path, output_path: Path):

Callers 2

api_generateFunction · 0.70
te_generateFunction · 0.70

Calls 2

decodeMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected