ctags: remove struct forward declarations
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 26 Nov 2011 19:02:00 +0000 (22:02 +0300)
committerMichal Marek <mmarek@suse.cz>
Sun, 18 Dec 2011 21:36:06 +0000 (22:36 +0100)
They're quite pointless and obscure location of real structure definition.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/tags.sh

index 028dc5ca857decde6688f495ffa4b00f60dd38eb..833813a99e7c23a29c4e7147c58ac0ca2c696400 100755 (executable)
@@ -167,6 +167,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()