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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user