How I find a declaration of a cpp class or struct by GNU global for now.
- search a class name with Emacs gtags plugin such as
- the constructor or destructor of the class is found
- search the class name again, this time references will be displayed
grepfor the class declaration among thousands references which kills me
How can I find the declaration of a class or struct by GNU global in a more efficient way.
I can find the declaration by
xref-find-definitions with ctags database easily,
however ctags is slower than gtags.