Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6333eb4 authored by John Kacur's avatar John Kacur Committed by Sam Ravnborg
Browse files

kbuild: Add ctags support for function prototypes and external variable declarations



This patch adds function prototypes and external variable declarations
to the set of tag kinds when running ctags. I find this useful when
perusing the kernel. Please apply.

Signed-off-by: default avatarJohn Kacur <jkacur@rogers.com>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 9572b28f
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -1236,7 +1236,9 @@ cscope: FORCE
quiet_cmd_TAGS = MAKE   $@
define cmd_TAGS
	rm -f $@; \
	ETAGSF=`etags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_GPL --extra=+f"`; \
	ETAGSF=`etags --version | grep -i exuberant >/dev/null && \
                echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
                --extra=+f --c-kinds=+px"`; \
                $(all-sources) | xargs etags $$ETAGSF -a
endef

@@ -1247,7 +1249,9 @@ TAGS: FORCE
quiet_cmd_tags = MAKE   $@
define cmd_tags
	rm -f $@; \
	CTAGSF=`ctags --version | grep -i exuberant >/dev/null && echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_GPL --extra=+f"`; \
	CTAGSF=`ctags --version | grep -i exuberant >/dev/null && \
                echo "-I __initdata,__exitdata,EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
                --extra=+f --c-kinds=+px"`; \
                $(all-sources) | xargs ctags $$CTAGSF -a
endef