]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ctags: remove struct forward declarations
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 8 Dec 2011 04:33:14 +0000 (15:33 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Dec 2011 05:47:57 +0000 (16:47 +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()