From: Alexey Dobriyan Date: Thu, 8 Dec 2011 04:33:14 +0000 (+1100) Subject: ctags: remove struct forward declarations X-Git-Tag: next-20111213~1^2~197 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3075305bb4b37b3426a5c7efdd411e3f2959e78a;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()