[Github-comments] [geany] Rewrite scope completion 3 (#862)

Jiří Techet notifications at xxxxx
Mon Jan 11 22:17:19 UTC 2016


On Mon, Jan 11, 2016 at 8:42 PM, Colomban Wendling <notifications at github.com
> wrote:

> I'm sure we discussed it but I can't find it back quickly apparently; but
> there's something odd I believe should work: currently nothing is suggested
> for namespaces.
> E.g., imagine this C++ file:
>
> namespace Ns {
>     class Cls {
>         public:
>             static int f() { return 42; }
>     };
> };
> int main(void)
> {
>     return Ns::Cls::f();
> }
>
> Nothing pops after Ns::, but it works for Cls::.
>

The thing is that scope completion shows tags only from a single file (so
e.g. only members of a single anon_struct_0 are shown). Namespaces can span
multiple files and then you'd get members from just a single (more or less
random) file which might look strange. So I skipped namespaces.

It probably is fixable but it would probably be a little more work so I'd
skip it for now.


---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/862#issuecomment-170708945
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160111/d89a8bd2/attachment.html>


More information about the Github-comments mailing list