#18 support class methods (static methods)



it would be very useful if ctags would allow to
differenciate static methods (eg class methods) from
normal methods (eg instance methods).
i also second the need for return type of a function.

thank you,



  • Darren Hiebert

    Darren Hiebert - 2002-12-21

    Logged In: YES

    How would you suggest this distinction be recorded in the
    tag file?

  • Darren Hiebert

    Darren Hiebert - 2002-12-21
    • assigned_to: nobody --> dhiebert
  • Emmanuel Touzery

    Logged In: YES

    (no clue how to use this bug report page)

    i think it would be ok to add a new flag to
    c differentiate class and instance members: add classmember=1
    for class members and functions. does not change anything for
    instance members/functions (changing the format for instance
    members/functions would inflate the tags file size too much).


  • Darren Hiebert

    Darren Hiebert - 2002-12-24

    Logged In: YES

    Yes, you are using this page correctly.

    What is the reason you are asking for this feature? I would
    like some understanding of the reasons behind this. Are you
    doing some kind of automated processing on the output
    (perhaps through the readtags library)?

  • Emmanuel Touzery

    Logged In: YES


    I am currently writing a vim plugin for code completion for OO
    languages (partly in vimL, partly in ruby).
    see http://www.vim.org/script.php?script_id=501
    for now the plugin is very basic but future versions should be
    much more ambitious (a bit of lex/yacc parsing of a small specific
    subset of the language etc -already done-), and c-x c-p style
    completion. I need from ctags two extra features (if i don't want
    the plugin's complexity to go too high):
    * differentiate static from non-static members (completion differs
    for both)
    * return type of given method/type of given parameter.

    i tried implementing the second one (which is the most
    important) by myself, without success until now.

    thank you, emmanuel

  • Elliott Hughes

    Elliott Hughes - 2007-05-27

    Logged In: YES
    Originator: NO

    my editor (http://software.jessies.org/evergreen/) needs something similar. i currently work around it by adding this to the command-line:



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks