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.
This commit is contained in:
Christopher Haster
2023-12-17 14:09:35 -06:00
parent 065c0391ad
commit 91d2fdbf06
+3 -1
View File
@@ -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