(o)
| 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 |