Re: [RFA] Limit qualified completions

Tom Tromey
2009-08-19T21:57:50Z

>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:

Keith> If the user attempts to complete symbols in a class or namespace,
Keith> i.e., "complete break foo::", default_make_symbol_completion_list will
Keith> return every single known global symbol in the executable.

Keith> This simplistic patch (and test case) "fixes" the problem, limiting
Keith> the matches to the appropriate symbols.

Keith> Ok?

I realize that Daniel already expressed some reservations about this
patch, in that it does not address all the scenarios. However, my view
is that this patch is an improvement over the current situation. I
asked Daniel about this off list and he seemed to be ok with moving
forward.

So, this is ok.

In addition to templates, I wonder what happens in this area if you try
to complete "Foo::~F" or a qualified Java name like "java.lang.Str".

Tom