C considered dangerous
C considered dangerous
Posted Aug 30, 2018 14:37 UTC (Thu) by error27 (subscriber, #8346)In reply to: C considered dangerous by excors
Parent article: C considered dangerous
I'm not actually too tied to Vim though and I really don't like cscope. I'm not eager to use KDevelop. What other IDEs are people using on Debian?
Posted Aug 31, 2018 7:11 UTC (Fri)
by cpitrat (subscriber, #116459)
[Link] (3 responses)
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.
C considered dangerous
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
