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.
Unified · Split
| @@ -188,6 +188,7 @@ regex_c=( · 187 unmodified lines | ||
| 188 | 188 | '/^PCI_OP_WRITE([[:space:]]*\(\w*\).*[1-4])/pci_bus_write_config_\1/' |
| 189 | 189 | '/\<DEFINE_\(RT_MUTEX\|MUTEX\|SEMAPHORE\|SPINLOCK\)([[:space:]]*\([[:alnum:]_]*\)/\2/v/' |
| 190 | 190 | '/\<DEFINE_\(RAW_SPINLOCK\|RWLOCK\|SEQLOCK\)([[:space:]]*\([[:alnum:]_]*\)/\2/v/' |
| 191 | + '/\<DEFINE_TIMER(\([^,)]*\),/\1/' | |
| 191 | 192 | '/\<DECLARE_\(RWSEM\|COMPLETION\)([[:space:]]*\([[:alnum:]_]\+\)/\2/v/' |
| 192 | 193 | '/\<DECLARE_BITMAP([[:space:]]*\([[:alnum:]_]\+\)/\1/v/' |
| 193 | 194 | '/\(^\|\s\)\(\|L\|H\)LIST_HEAD([[:space:]]*\([[:alnum:]_]*\)/\3/v/' |
| @@ -260,7 +261,7 @@ exuberant() · 66 unmodified lines | ||
| 260 | 261 | # identifiers to ignore by ctags |
| 261 | 262 | local ign=( |
| 262 | 263 | ACPI_EXPORT_SYMBOL |
| 263 | − DEFINE_{TRACE,MUTEX} | |
| 264 | + DEFINE_{TRACE,MUTEX,TIMER} | |
| 264 | 265 | EXPORT_SYMBOL EXPORT_SYMBOL_GPL |
| 265 | 266 | EXPORT_TRACEPOINT_SYMBOL EXPORT_TRACEPOINT_SYMBOL_GPL |
| 266 | 267 | ____cacheline_aligned ____cacheline_aligned_in_smp |