Search code examples
linuxcommand-linectags

Which version of ctags had the `-T` option?


I am looking at an old Makefile which specifies the -T option to ctags. I am running exuberant ctags 5.9, and it does not have the -T option.

A web search for the term ctags -T option did not reveal anything.

Does anyone know which version of ctags supported the -T option and what it means?


Solution

  • Well, on my Gentoo system I have this:

    $ ctags --help | grep -e -T
    -T, --typedefs-and-c++
    
    $ ctags --version          
    ctags (GNU Emacs 24.5)
    Copyright (C) 2015 Free Software Foundation, Inc.
    This program is distributed under the terms in ETAGS.README
    
    $ readlink $(which ctags) 
    ctags-emacs-24
    
    $ equery belongs $(which ctags)
    app-editors/emacs-24.5 (/usr/bin/ctags-emacs-24)
    
    $ eselect ctags list
    Available ctags symlink targets:
      [1]   ctags-emacs-24 *
      [2]   exuberant-ctags
    

    ctags-emacs-24 is ctags implementation from emacs package, while exuberant ctags are available through exuberant-ctags command.

    I guess on your system, ctags command is exuberant ctags, which doesn't have -T option.