(o)
| 1985 | with open("compile_commands.json", "w", encoding="utf-8") as w: |
| 1986 | |
| 1987 | def default_format(o): |
| 1988 | if isinstance(o, Path): |
| 1989 | return o.resolve().as_posix() |
| 1990 | return str(o) |
| 1991 | |
| 1992 | json.dump(clangd_config, w, indent=2, default=default_format) |
| 1993 |