diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2011-11-26 20:02:00 +0100 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2011-12-18 22:36:06 +0100 |
commit | ff894e396b4d0b5383127c1bcb2cd3879946526e (patch) | |
tree | e5b31c4de8cf0862f434a5edb8f8d991553ac685 /scripts | |
parent | scripts/tags.sh: Add Page flag function magic (diff) | |
download | linux-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-x | scripts/tags.sh | 2 |
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() |