Project-Setup: add a jq tip

Fangrui Song 2023-12-16 13:36:22 -08:00
parent 45aec88d8f
commit 97a2c32a84

@ -72,6 +72,11 @@ If your `compile_commands.json` is not kept in the project root, set the
initialization option `compilationDatabaseDirectory` to an alternative
directory containing `compile_commands.json`.
You can use jq to concatenate multiple `compile_commands.1.json` fragments:
```
cat a/compile_commands.json b/compile_commands.json | jq '.[]' | jq -s '.' > compile_commands.json
```
### [CMake](https://cmake.org/)
```zsh