C considered dangerous
C considered dangerous
Posted Aug 31, 2018 7:11 UTC (Fri) by cpitrat (subscriber, #116459)In reply to: C considered dangerous by error27
Parent article: C considered dangerous
Posted Sep 3, 2018 22:08 UTC (Mon)
by giraffedata (guest, #1954)
[Link] (2 responses)
Do tell. How do I point to a local variable use and have Emacs show me where its declaration is?
I know about Etags - But I don't think this is among its functions.
Posted Sep 4, 2018 9:34 UTC (Tue)
by cpitrat (subscriber, #116459)
[Link]
Then you can jump to local variable declarations using M-.
Posted Sep 7, 2018 10:57 UTC (Fri)
by nix (subscriber, #2304)
[Link]
Doing this for non-local symbols requires CEDET to know how to locate things in your project, which usually happens more or less automatically, particularly if you use etags or GNU GLOBAL.
Finding the declaration of a variable in Emacs
Well there's emacs, which supports it too.
Finding the declaration of a variable in Emacs
To produce file for emacs you also need -e.
So something like:
ctags -e --c-kinds=+l .
Finding the declaration of a variable in Emacs
