From: Alexey Dobriyan Date: Fri, 2 Dec 2011 03:09:12 +0000 (+1100) Subject: ctags: remove struct forward declarations X-Git-Tag: next-20111202~2^2~193 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5e816db4238acd26275967802f61cc82dee1b3a7;p=karo-tx-linux.git ctags: remove struct forward declarations They're quite pointless and obscure location of real structure definition. Signed-off-by: Alexey Dobriyan Cc: Michal Marek Signed-off-by: Andrew Morton --- diff --git a/scripts/tags.sh b/scripts/tags.sh index 028dc5ca857d..833813a99e7c 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -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()