History

scripts/tags.sh: Tag timer definitions

For timer definitions like DEFINE_TIMER(mytimer, mytimer_handler); ctags generates tags `DEFINE_TIMER` and skips `mytimer` because it doesn't expand the DEFINE_TIMER macro. Configure ctags to generate tag for `mytimer` ans skip the `DEFINE_TIMER` tag in such cases.

Costa Shulyupin committed 1 year ago

Commit def35da1 parent 37df9041 file · +2 −1Browse files

Unified · Split

scripts/tags.sh+2−1
@@ -188,6 +188,7 @@ regex_c=( · 187 unmodified lines
188188 '/^PCI_OP_WRITE([[:space:]]*\(\w*\).*[1-4])/pci_bus_write_config_\1/'
189189 '/\<DEFINE_\(RT_MUTEX\|MUTEX\|SEMAPHORE\|SPINLOCK\)([[:space:]]*\([[:alnum:]_]*\)/\2/v/'
190190 '/\<DEFINE_\(RAW_SPINLOCK\|RWLOCK\|SEQLOCK\)([[:space:]]*\([[:alnum:]_]*\)/\2/v/'
191+ '/\<DEFINE_TIMER(\([^,)]*\),/\1/'
191192 '/\<DECLARE_\(RWSEM\|COMPLETION\)([[:space:]]*\([[:alnum:]_]\+\)/\2/v/'
192193 '/\<DECLARE_BITMAP([[:space:]]*\([[:alnum:]_]\+\)/\1/v/'
193194 '/\(^\|\s\)\(\|L\|H\)LIST_HEAD([[:space:]]*\([[:alnum:]_]*\)/\3/v/'
@@ -260,7 +261,7 @@ exuberant() · 66 unmodified lines
260261 # identifiers to ignore by ctags
261262 local ign=(
262263 ACPI_EXPORT_SYMBOL
263− DEFINE_{TRACE,MUTEX}
264+ DEFINE_{TRACE,MUTEX,TIMER}
264265 EXPORT_SYMBOL EXPORT_SYMBOL_GPL
265266 EXPORT_TRACEPOINT_SYMBOL EXPORT_TRACEPOINT_SYMBOL_GPL
266267 ____cacheline_aligned ____cacheline_aligned_in_smp