0

How I find a declaration of a cpp class or struct by GNU global for now.

  1. search a class name with Emacs gtags plugin such as ggtags or counsel-ggtags)
  2. the constructor or destructor of the class is found
  3. search the class name again, this time references will be displayed
  4. grep for 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.