Makefile: remove forward declaration using etags
PATCH 1/1 Makefile: remove forward declaration using etags
When using exuberant, we will remove all forward declaration of struct at the end, add this function to etags.
Signed-off-by Yang Bai <[email protected]>
--- scripts/tags.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
scripts/tags.sh +3 -0
@@ -208,6 +208,9 @@ emacs() all_defconfigs | xargs -r $1 -a \ --regex='/^#?[ \t]?\(CONFIG_[a-zA-Z0-9_]+\)/\1/' + + # Remove structure forward declarations. + LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' TAGS } xtags()
Signature · 1 line
1.7.9.1