From f881c0edcaee2a2381a8ae98b1fdeb37029cc58a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 10 Jun 2020 16:49:42 +0200 Subject: Added compile_commands.json and tags generation --- .boilerplates/c/run | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.boilerplates/c/run') diff --git a/.boilerplates/c/run b/.boilerplates/c/run index 50bf221..6eea488 100755 --- a/.boilerplates/c/run +++ b/.boilerplates/c/run @@ -1,3 +1,7 @@ #!/usr/bin/env sh +make --always-make --dry-run | grep -w 'gcc' | grep -w '\-c' | jq -nR '[inputs|{directory:".", command:., file: match(" [^ ]+$").string[1:]}]' > compile_commands.json + +ctags -R --exclude=.git --exclude=out . + make && ./out/name "$@" -- cgit v1.2.3