[cfe-commits] r100528 - in /cfe/trunk: lib/Sema/SemaCodeComplete.cpp test/Index/complete-objc-message.m

Douglas Gregor dgregor at apple.com
Tue Apr 6 10:36:32 PDT 2010


On Apr 6, 2010, at 9:58 AM, Fariborz Jahanian wrote:

> 
> On Apr 6, 2010, at 9:40 AM, Douglas Gregor wrote:
> 
>> Author: dgregor
>> Date: Tue Apr  6 11:40:00 2010
>> New Revision: 100528
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=100528&view=rev
>> Log:
>> Implement support for code completion of an Objective-C message send to
>> "id" or an expression of type "id". In these cases, we produce a list
>> of all of the (class or instance) methods, respectively, that we know about.
> 
> I am wondering how useful this list would be. Aren't we talking about thousands in our typical
> framework?


Yes, but one rarely looks at the entire list, since the client is expected to filter the results interactively, and that list will get narrowed down pretty quickly.

FWIW, we have the same issue with normal completion of expressions, which often returns tens of thousands of results. However, once you've typed, e.g., "fpr", it's pretty clear that you want a printf, and interactive filtering can do that pretty well.

	- Doug



More information about the cfe-commits mailing list