[Github-comments] [geany/geany] Enable local variable and function parameter tag reporting for C/C++ (PR #3175)

Jiří Techet notifications at github.com
Sun Apr 24 15:24:23 UTC 2022


> The problem is almost no locals have a type because they are inferred (ie declared auto) and that is way above ctags pay grade to get those types, and so no scope autocomplete on . or -> to find out which tag was chosen. I guess that means the local was chosen, but its impossible to be sure.

That's something that will unfortunately never work with ctags and will have to wait for LSP (aka the post-ctags time consumer if I or someone else is brave enough).

> (sorting locals before other tags) That would be good.

OK, can try that.

> Typing co ctrl+space at exactly the same place in the same file in Eclipse gets many of the same names plus some more, (including the cookie monsters), but grouped by a whole lot of groups like local var, global var, typedef, class, struct, member var, member function, global function etc each sorted alphabetical, but it has an icon on each name making the groups obvious.

The question is what we want - whether icons corresponding to groups or icons corresponding to tag types like in the symbol tree - see #3176. I suggest to try the sorting only first and see how it behaves.

> Its just a member function like any other, but with a funny name. Thats what I mean by "determining function calls". I presume at the moment the tooltips code finds the tag for foo, and it ignores all but function/method tags. But for C++ it should also to notice it is a variable of a class with an operator() member function and tooltip that. And also if the tag says its a class name, then the tooltip should show the constructor if it has one. But as I said, so long as the tags support that then its tooltip code not this PR. We really should separate some of this language specific stuff into a plugin "someday".

For now I'll just keep it as it is - it didn't work before, it won't work now - and can be improved later.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3175#issuecomment-1107862932
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3175/c1107862932 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220424/c0f861ec/attachment.htm>


More information about the Github-comments mailing list