summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2011-11-26 20:02:00 +0100
committerMichal Marek <mmarek@suse.cz>2011-12-18 22:36:06 +0100
commitff894e396b4d0b5383127c1bcb2cd3879946526e (patch)
treee5b31c4de8cf0862f434a5edb8f8d991553ac685 /scripts
parentscripts/tags.sh: Add Page flag function magic (diff)
downloadlinux-ff894e396b4d0b5383127c1bcb2cd3879946526e.tar.xz
linux-ff894e396b4d0b5383127c1bcb2cd3879946526e.zip
ctags: remove struct forward declarations
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tags.sh2
1 files changed, 2 insertions, 0 deletions
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()