MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / default_format

Function default_format

tools/project.py:1778–1781  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

1776 with open("compile_commands.json", "w", encoding="utf-8") as w:
1777
1778 def default_format(o):
1779 if isinstance(o, Path):
1780 return o.resolve().as_posix()
1781 return str(o)
1782
1783 json.dump(clangd_config, w, indent=2, default=default_format)
1784

Callers

nothing calls this directly

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected