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

Jiří Techet notifications at github.com
Thu Apr 21 13:18:32 UTC 2022


> Actually "Neat!!!" is not sufficient, this is massive, most modern code is written using parameters and locals almost exclusively, globals are only functions, and C++ moves many of them to members. So global autocompletes have significantly reduced in usefullness. Adding locals and parameters to autocomplete is a significant upgrade.

If you have some C++ code, please test how it behaves - I mostly tested it just with Geany's C (plus tried Boost to see how types are reported and what needs to be stripped from them).

One thing I noticed that doesn't work very well is multiple member accesses in a row like
```
a.b.
```
Geany starts from scratch when looking for a type when `.` is typed so for `b` it doesn't look at the particular `b` which is a member of `a` but it searches `b` globally. Unfortunately if we wanted to generalize this, we'd have to parse possibly complex parts of code in front of `.` by ourselves.

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

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


More information about the Github-comments mailing list