Menu

#23 Add variable type to variables

open
None
5
2003-07-23
2003-04-07
F. Cenedese
No

I want to add "Go to ..." functionality with the help
of ctags.
For this I'd need that variables are recorded together with
their type.

e.g. pMyClass->SomeFunc()

If a user wants to go to definition of SomeFunc I only know
that it is part of pMyClass. I can lookup where pMyClass is
defined but I don't know the type/class. So I don't
know where
SomeFunc belongs to.

Whereas this may be doable with some own text parsing at
the place of the definition of pMyClass, it gets more and
more difficult if I have three or more redirections.

e.g. pMyClass->pChild->SomeFunc()

Thanks

Discussion

  • Darren Hiebert

    Darren Hiebert - 2003-07-23
    • assigned_to: nobody --> dhiebert
     
  • Welti Marco

    Welti Marco - 2003-10-02

    Logged In: YES
    user_id=632860

    i'll second on that RFE

    also if there are declarations like

    int a,
    b,
    c;

    it's very hard and error prone to figure out the type of
    the variable

     
  • Shoban Jeyaraj

    Shoban Jeyaraj - 2004-05-21

    Logged In: YES
    user_id=131713

    I would like this option.

    types for variable declarations aid in ad-hoc code
    completion. Given a variable, I'll be able to get the type
    and provide options in terms of methods it supports etc.

    The same goes for functions too... Return types can be stored...

     

Log in to post a comment.