Skip to content

Instantly share code, notes, and snippets.

@tykurtz
Created July 13, 2019 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tykurtz/a17cf98a4f299f875d0dfdac6feb9690 to your computer and use it in GitHub Desktop.
Save tykurtz/a17cf98a4f299f875d0dfdac6feb9690 to your computer and use it in GitHub Desktop.
Merge ccls compile commands
#!/bin/bash
cat ./**/**/compile_commands.json > compile_commands.json && sed -i -e ':a;N;$!ba;s/\n\]\[\n/,\n/g' compile_commands.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment