diff --git a/Project-Setup.md b/Project-Setup.md index fce5155..80c802a 100644 --- a/Project-Setup.md +++ b/Project-Setup.md @@ -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