Skip to content

Commit

Permalink
ctags: remove struct forward declarations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexey Dobriyan authored and Michal Marek committed Dec 18, 2011
1 parent 358142d commit ff894e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/tags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ff894e3

Please sign in to comment.