diff mbox series

[RFC] CTAGS prototypes

Message ID 20231020104606.23305-2-pro@denx.de
State RFC
Delegated to: Tom Rini
Headers show
Series [RFC] CTAGS prototypes | expand

Commit Message

Philip Oberfichtner Oct. 20, 2023, 10:46 a.m. UTC
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

Comments

Tom Rini Oct. 20, 2023, 5:50 p.m. UTC | #1
On Fri, Oct 20, 2023 at 12:46:07PM +0200, Philip Richard Oberfichtner wrote:

> 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?
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index e0040a40d3..7f108330a5 100644
--- a/Makefile
+++ b/Makefile
@@ -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