Skip to contentSkip to conversation

scripts/tags.sh: Don't tag usages of DECLARE_BITMAP

PATCH New Costa Shulyupin 1 participant 1 message Jan 13, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/tags.sh: Don't tag usages of DECLARE_BITMAP

For all bitmap declarations like
DECLARE_BITMAP(x, y);
ctags generates multiple DECLARE_BITMAP tags for each usage because it doesn't expand the DECLARE_BITMAP macro.

Configure ctags to skip generating tags for DECLARE_BITMAP in such cases.

The #define DECLARE_BITMAP itself and declared bitmaps are tagged correctly.

---
 scripts/tags.sh | 1 +
 1 file changed, 1 insertion(+)
scripts/tags.sh +1 -0
index 736609a4a469d..45eaf35f5bff8 100755
@@ -268,6 +268,7 @@ exuberant()
 	# identifiers to ignore by ctags
 	local ign=(
 		ACPI_EXPORT_SYMBOL
+		DECLARE_BITMAP
 		DEFINE_{TRACE,MUTEX,TIMER}
 		EXPORT_SYMBOL EXPORT_SYMBOL_GPL
 		EXPORT_TRACEPOINT_SYMBOL EXPORT_TRACEPOINT_SYMBOL_GPL
Signature · 1 line
2.47.0