Skip to contentSkip to conversation

CTAGS prototypes

RFC In review Philip Richard Oberfichtner 2 participants 2 messages Oct 20, 2023 Kbuild

lore
Share & tools
lore
#0 lore raw

RFC 1/1 CTAGS prototypes

Hi,

is there a specific reason why the ctags make target is compiled without using '--kinds-c=+p'? Maybe it would make sense to (optionally) include that in the Makefile?

I personally find it useful to jump to the header where a function is declared to view the documentary comment. Or am I missing another option to quickly get there?

Regards,
Philip

Signature · 9 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-22  Fax: +49-8142-66989-80   Email: [email protected]
=====================================================================

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index e0040a40d3..7f108330a5 100644
@@ -2085,7 +2085,7 @@ FIND := find
 FINDFLAGS := -L
 
 tags ctags:
-		ctags -w -o ctags `$(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) \
+		ctags -w -o ctags --kinds-c=+p `$(FIND) $(FINDFLAGS) $(TAG_SUBDIRS) \
 						-name '*.[chS]' -print`
 		ln -s ctags tags
 
Signature · 1 line
2.42.0
#1 lore raw
Quoted 9 lines · Philip Richard Oberfichtner

Hi,

is there a specific reason why the ctags make target is compiled without using '--kinds-c=+p'? Maybe it would make sense to (optionally) include that in the Makefile?

I personally find it useful to jump to the header where a function is declared to view the documentary comment. Or am I missing another option to quickly get there?

To answer the first half of this, it's whatever the last person to use ctags related things was. Perhaps looking at and syncing that part of the kernel tree would be helpful?

Signature · 1 line
Tom