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/.gitignore | 2 ++ .boilerplates/c/run | 4 ++++ 2 files changed, 6 insertions(+) (limited to '.boilerplates') diff --git a/.boilerplates/c/.gitignore b/.boilerplates/c/.gitignore index 89f9ac0..3a401d0 100644 --- a/.boilerplates/c/.gitignore +++ b/.boilerplates/c/.gitignore @@ -1 +1,3 @@ out/ +compile_commands.json +tags 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