[Github-comments] [geany/geany] Use cxx parser from uctags (PR #3032)

elextr notifications at xxxxx
Tue Dec 7 20:57:49 UTC 2021


> Scope autocompletion should still work, it should resolve the typedefs correctly, it's just the display in the sidebar.

Ok, I had "autocomplete symbols" off and it seems ctrl+space won't scope autocomplete, just name autocomplete, I didn't realise that.  Both scope and name work with it on.  

Scope autocomplete works for locals too :+1: (eg typing map-> at tm_parser.c:674) but as you pointed out also works outside the scope of the local :disappointed: 

> we don't want to see them below the function name in the sidebar - those would be confused with local variables.

Well technically parameters are more correct than locals since they are visible for the whole of the function whereas locals are only visible from the declaration to end of scope.

Neither Vscode or Eclipse show locals or parameters in their symbols for functions, which sort of makes sense, you can't scope specify them (ie can't do funct_name::local_name or funct_name::param_name) but both show their declarations in a tooltip on hover (which I'm still ambivalent on, it can be annoying). And the locals and parameters names are styled different, but thats not something we can do because Scintilla.

Anyway this is just experimenting, not part of this PR, which so far seems to work, I would be happy for it to be merged so it gets more testing.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3032#issuecomment-988258287
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211207/19415179/attachment.htm>


More information about the Github-comments mailing list