From 638abde1f9b070ae78d1dc4ac45101e0150c2914 Mon Sep 17 00:00:00 2001 From: Tony Olagbaiye Date: Wed, 9 May 2018 01:57:17 +0100 Subject: [PATCH] CTags --- .dir-locals.el | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.dir-locals.el b/.dir-locals.el index 46be8ac..6166711 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -8,6 +8,7 @@ (eval . (setq-local company-clang-arguments (list (concat "-I" (expand-file-name "libwebsockets/include" (projectile-project-root))) (concat "-I" (expand-file-name "json-c" (projectile-project-root)))))) + (eval . (setq-local tags-table-list (expand-file-name ".git/tags" (projectile-project-root)))) (flycheck-clang-warnings . ("all" "extra" "error-implicit-function-declaration" "no-missing-field-initializers")) (flycheck-clang-language-standard . "gnu99") (flycheck-checker . c/c++-clang) diff --git a/Makefile b/Makefile index 99e3d3a..1e25c5a 100644 --- a/Makefile +++ b/Makefile @@ -66,7 +66,7 @@ install: slack.so .PHONY: tags cs tags: - ctags -f .git/tags -R *.c *.h + $(CC) $(CFLAGS) -M $(SRCS) | sed -e "s/[\\ ]/\n/g" | sed -e "/^$$/d" -e "/\.o:[ \t]*$$/d" | sort | uniq | ctags -e -L - -f .git/tags -R --c-kinds=+px --c++-kinds=+px --fields=+iaS --extra=+fq cs: cscope -RUbq