Finding the declaration of a variable in Emacs
Finding the declaration of a variable in Emacs
Posted Sep 3, 2018 22:08 UTC (Mon) by giraffedata (guest, #1954)In reply to: C considered dangerous by cpitrat
Parent article: C considered dangerous
Well there's emacs, which supports it too.
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
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
