Skip to contentSkip to conversation

tags: link from CONFIG_x to 'config x' as well

PATCH Applied [email protected] 2 participants 2 messages Dec 1, 2008 – Dec 3, 2008 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 7/8 tags: link from CONFIG_x to 'config x' as well

From: Alexey Dobriyan <[email protected]>

Inability to jump from CONFIG_ symbol in source to symbol definition in Kconfig is very, very annoying. You'll jump to useless entry in autoconf.h, if it exists at all.

No more.

---

 Makefile |    6 ++++++
 1 file changed, 6 insertions(+)
Makefile renamed from Makefile~tags-link-from-config_x-to-config-x-as-well +6 -0
diff -puN Makefile~tags-link-from-config_x-to-config-x-as-well Makefile
@@ -1482,6 +1482,10 @@ define xtags
 		--langdef=kconfig \
 		--language-force=kconfig \
 		--regex-kconfig='/^[[:blank:]]*(menu|)config[[:blank:]]+([[:alnum:]_]+)/\2/'; \
+	    $(all-kconfigs) | xargs $1 -a \
+		--langdef=kconfig \
+		--language-force=kconfig \
+		--regex-kconfig='/^[[:blank:]]*(menu|)config[[:blank:]]+([[:alnum:]_]+)/CONFIG_\2/'; \
 	    $(all-defconfigs) | xargs -r $1 -a \
 		--langdef=dotconfig \
 		--language-force=dotconfig \
@@ -1490,6 +1494,8 @@ define xtags
 	    $(all-sources) | xargs $1 -a; \
 	    $(all-kconfigs) | xargs $1 -a \
 		--regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/'; \
+	    $(all-kconfigs) | xargs $1 -a \
+		--regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/CONFIG_\3/'; \
 	    $(all-defconfigs) | xargs -r $1 -a \
 		--regex='/^#?[ \t]?\(CONFIG_[a-zA-Z0-9_]+\)/\1/'; \
 	else \

_

#1 lore raw
Quoted 5 lines · On Mon, Dec 01, 2008 at 02:21:07PM -0800, [email protected] wrote:

From: Alexey Dobriyan <[email protected]>

Inability to jump from CONFIG_ symbol in source to symbol definition in Kconfig is very, very annoying. You'll jump to useless entry in autoconf.h, if it exists at all.

Included in my patch where I move all tags
support to a shell script.

So when I poush out kbuild-next this will no longer apply anyway.

Sam