From 91d2fdbf06b91fe89aabea14803fc1ecb530333f Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Sun, 17 Dec 2023 14:09:35 -0600 Subject: [PATCH] Fixed ctags getting confused about predeclarations I think ctags's defaults may have changed recently or something, but it's struggling to find function definitions when there's a predeclaration in the same file. Adding --fields=+n (line numbers) fixes this. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 04c61fec..c10c81e9 100644 --- a/Makefile +++ b/Makefile @@ -182,7 +182,9 @@ size: $(OBJ) ## Generate a ctags file .PHONY: tags ctags tags ctags: - $(CTAGS) --totals --c-types=+p $(shell find -H -name '*.h') $(SRC) + $(strip $(CTAGS) \ + --totals --fields=+n --c-types=+p \ + $(shell find -H -name '*.h') $(SRC)) ## Show this help text .PHONY: help