-
-
Save qlibp/af46fefb81dcc43a4bcb76cbc0413858 to your computer and use it in GitHub Desktop.
Merge multiple compile_commands.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is to be used with catkin_make or catkin_tools if we want to merge compile_commands.txt in a single file to allow some tools to work such as Sourcetail. | |
sudo apt install jq | |
jq -s 'map(.[])' PATH_TO_COMPILE_COMMANDS_ROOT/**/compile_commands.json > compile_commands.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment