Skip to content

Commit ff894e3

Browse files
Alexey Dobriyanmichal42
authored andcommitted
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>
1 parent 358142d commit ff894e3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎scripts/tags.sh‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ exuberant()
167167
--langdef=dotconfig --language-force=dotconfig \
168168
--regex-dotconfig='/^#?[[:blank:]]*(CONFIG_[[:alnum:]_]+)/\1/'
169169

170+
# Remove structure forward declarations.
171+
LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' tags
170172
}
171173

172174
emacs()

0 commit comments

Comments
 (0)