mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-21 23:25:07 +00:00
Project-Setup: add a jq tip
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
|
||||
|
Loading…
Reference in New Issue
Block a user