1# Copyright: 2021 Masatake YAMATO 2# License: GPL-2 3 4CTAGS=$1 5 6. ../utils.sh 7: && 8 ${CTAGS} --quiet --options=NONE\ 9 --_prelude-C='{{ (enter C) == }}' \ 10 --_sequel-C='{{ (leave C) == }}' \ 11 --options=./args-c.ctags -o - input.c && 12 ${CTAGS} --quiet --options=NONE \ 13 --_prelude-DTS='{{ (enter DTS) == }}' \ 14 --_sequel-DTS='{{ (leave DTS) == }}' \ 15 --options=./args-dts.ctags -o - input.dts && 16 ${CTAGS} --quiet --options=NONE --map-CPreProcessor=+.i \ 17 --_prelude-CPreProcessor='{{ (enter CPreProcessor) == }}' \ 18 --_sequel-CPreProcessor='{{ (leave CPreProcessor) == }}' \ 19 --options=./args-cpreprocessor.ctags -o - input.i 20 21# 22# BUGS: The following two don't work because in-use marker is not set to 23# the subparsers of the CPreprocessor parser. The CPreprocessor parser must 24# mark in-use on its sub parsers to call the inputStart and inputEnd methods 25# in the foreachSubparser loop. 26# 27# ${CTAGS} --quiet --options=NONE --options=./args-cpreprocessor.ctags -o - input.c 28# ${CTAGS} --quiet --options=NONE --options=./args-cpreprocessor.ctags -o - input.dts 29# 30