diff options
Diffstat (limited to 'themes/compile_commands.sh')
-rwxr-xr-x | themes/compile_commands.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/compile_commands.sh b/themes/compile_commands.sh new file mode 100755 index 0000000..2cb3fed --- /dev/null +++ b/themes/compile_commands.sh @@ -0,0 +1,5 @@ +make --always-make --dry-run \ + | grep -wE 'gcc|g\+\+|c\+\+' \ + | grep -w '\-c' \ + | jq -nR '[inputs|{directory:".", command:., file: match(" [^ ]+$").string[1:]}]' \ + > compile_commands.json |