Skip to content

Instantly share code, notes, and snippets.

@MartyLake
Last active November 26, 2019 14:34
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 MartyLake/7781230a19f144218a98af43e0c7eca3 to your computer and use it in GitHub Desktop.
Save MartyLake/7781230a19f144218a98af43e0c7eca3 to your computer and use it in GitHub Desktop.
convert compile_commands.json to gtags.files
[ -f "compile_commands.json" ] || echo "compile_commands.json not found." ; return -1
grep '"file"' compile_commands.json | sed -E 's/.*"..\/..\/..\/(.*)",/\1/' > gtags.files
global -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment