1# Copyright: 2017 Masatake YAMATO 2# License: GPL-2 3 4CTAGS="$1 --quiet --options=NONE --fields=+lK" 5 6list_kinds() 7{ 8 echo '#' 9 echo '#' list kinds$2 $1 10 echo '#' 11 ${CTAGS} -o - \ 12 --options=./event.ctags \ 13 --options=./hook.ctags \ 14 --options=./plugin.ctags \ 15 --list-kinds$2=$1 16} 17 18list_kinds C 19list_kinds Event 20list_kinds Hook 21list_kinds Plugin 22 23list_kinds C -full 24list_kinds Event -full 25list_kinds Hook -full 26list_kinds Plugin -full 27 28echo C only 29${CTAGS} -o - input.c 30 31echo 32echo C + EVENT 33${CTAGS} -o - \ 34 --options=./event.ctags \ 35 input.c 36 37 38echo 39echo C + EVENT + HOOK 40${CTAGS} -o - \ 41 --options=./event.ctags \ 42 --options=./hook.ctags \ 43 input.c 44 45echo 46echo C + EVENT + HOOK + PLUGIN 47${CTAGS} -o - \ 48 --options=./event.ctags \ 49 --options=./hook.ctags \ 50 --options=./plugin.ctags \ 51 input.c 52 53echo 54echo C + EVENT + HOOK + PLUGIN + UA 55${CTAGS} -o - \ 56 --options=./event.ctags \ 57 --options=./hook.ctags \ 58 --options=./plugin.ctags \ 59 --options=./unused-attr.ctags \ 60 input.c 61 62echo 63echo 'C(disabled)' + EVENT + HOOK + PLUGIN + UA 64${CTAGS} -o - \ 65 --options=./event.ctags \ 66 --options=./hook.ctags \ 67 --options=./plugin.ctags \ 68 --options=./unused-attr.ctags \ 69 --languages=-C \ 70 input.c 71 72echo 73echo C + 'EVENT(disabled)' + HOOK + PLUGIN + UA 74${CTAGS} -o - \ 75 --options=./event.ctags \ 76 --options=./hook.ctags \ 77 --options=./plugin.ctags \ 78 --options=./unused-attr.ctags \ 79 --languages=-Event \ 80 input.c 81 82echo 83echo C + 'EVENT' + 'HOOK(disabled)' + PLUGIN + UA 84${CTAGS} -o - \ 85 --options=./event.ctags \ 86 --options=./hook.ctags \ 87 --options=./plugin.ctags \ 88 --options=./unused-attr.ctags \ 89 --languages=-Hook \ 90 input.c 91 92echo 93echo C + 'EVENT' + 'HOOK' + PLUGIN + 'UA(-v)' 94${CTAGS} -o - \ 95 --options=./event.ctags \ 96 --options=./hook.ctags \ 97 --options=./plugin.ctags \ 98 --options=./unused-attr.ctags \ 99 --kinds-UnusedAttr=-v \ 100 input.c 101 102echo List subparsers of C '(' 'EVENT' + 'HOOK' + PLUGIN + 'UA' ')' 103${CTAGS} \ 104 --options=./event.ctags \ 105 --options=./hook.ctags \ 106 --options=./plugin.ctags \ 107 --options=./unused-attr.ctags \ 108 --list-subparsers=C 109 110echo List subparsers of C '(' 'EVENT' + 'HOOK' + PLUGIN + 'UA' ')' without the header 111${CTAGS} --with-list-header=no \ 112 --options=./event.ctags \ 113 --options=./hook.ctags \ 114 --options=./plugin.ctags \ 115 --options=./unused-attr.ctags \ 116 --list-subparsers=C 117 118echo List subparsers of C '(' 'EVENT' + 'HOOK' + PLUGIN + 'UA' ')' in machinable 119${CTAGS} \ 120 --options=./event.ctags \ 121 --options=./hook.ctags \ 122 --options=./plugin.ctags \ 123 --options=./unused-attr.ctags \ 124 --machinable \ 125 --list-subparsers=C 126 127echo List subparsers of C '(' 'EVENT' + 'HOOK' + PLUGIN + 'UA' ')' in machinable without the header 128${CTAGS} --with-list-header=no \ 129 --options=./event.ctags \ 130 --options=./hook.ctags \ 131 --options=./plugin.ctags \ 132 --options=./unused-attr.ctags \ 133 --machinable \ 134 --list-subparsers=C 135