[Geany] Tag [definition|declaration] difference + suggestion?

Nick Treleaven nick.treleaven at xxxxx
Thu Dec 13 12:50:20 UTC 2007


On Thu, 13 Dec 2007 12:24:20 +0100
Harold Aling <h.aling at home.nl> wrote:

> 
> Dear Geany devs,
> 
> 1) What exactly is the difference between tag definition and
> declaration? -> Could a tag have both?

A tag can't have both. It depends on the tagmanager parser. In C,
function prototypes and extern declarations are used for goto tag
declaration, goto tag definition uses everything else. Goto tag
declaration is used for the following parsers:

prototype tags: C, SQL, JS
extern tags: C, Pascal

But the syntax is probably different for the non-C languages above (we
can check if necessary).

> 2) How about introducing ctrl-click to go to a tag's
> [definition|declaration]?

Ctrl-click is already used for column selections.

Regards,
Nick



More information about the Users mailing list