Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#647 Go to tag definition doesn't work w/ c++ function argument

closed-rejected
nobody
General (289)
2
2012-09-11
2011-02-22
Eric
No

Geany version 0.2

The "go to tag definition" feature in the right click menu doesn't work when the variable is defined in the definition of a function in C++. For example,

void foo(int variable)
{
variable = 0;
}

Calling "go to tag definition" on the second occurrence of the word variable says "Definition of 'variable' not found".

Discussion

  • Nick Treleaven
    Nick Treleaven
    2011-02-23

    • priority: 5 --> 2
     
  • Nick Treleaven
    Nick Treleaven
    2011-02-23

    Yes, local tag parsing is not supported.

     
  • Lex Trotman
    Lex Trotman
    2012-09-11

    Only top level variable definitions are tracked by the tagmanager. This is a known limitation. It is a feature request to track them.

     
  • Lex Trotman
    Lex Trotman
    2012-09-11

    • status: open --> closed-rejected
     
  • Matthew Brush
    Matthew Brush
    2012-09-12

    I was under the impression that Tag Manager attempts to do this but it just doesn't work? Either way, that the parser doesn't parse local variables is a bug (at least as far as parsers are concerned :). AFAIK Ctags can parse local variables.