Skip to contentSkip to conversation

ctags: remove struct forward declarations

PATCH In review Alexey Dobriyan 2 participants 2 messages Nov 26, 2011 – Dec 18, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ctags: remove struct forward declarations

They're quite pointless and obscure location of real structure definition.

---

 scripts/tags.sh |    2 ++
 1 file changed, 2 insertions(+)
scripts/tags.sh +2 -0
@@ -146,6 +146,8 @@ exuberant()
 	--langdef=dotconfig --language-force=dotconfig          \
 	--regex-dotconfig='/^#?[[:blank:]]*(CONFIG_[[:alnum:]_]+)/\1/'
 
+	# Remove structure forward declarations.
+	LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' tags
 }
 
 emacs()