]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ctags: remove struct forward declarations
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 2 Dec 2011 03:09:12 +0000 (14:09 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 2 Dec 2011 03:15:24 +0000 (14:15 +1100)
They're quite pointless and obscure location of real structure definition.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
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()