Should DUContext::uses() return a list?

Andreas Pakulat apaku at gmx.de
Mon Jul 21 19:04:28 UTC 2008


On 21.07.08 20:57:40, David Nolden wrote:
> Am Montag, 21. Juli 2008 20:46:19 schrieb Andreas Pakulat:
> > Hi,
> >
> > according to its API dox DUContext::uses() should return a list of uses,
> > but currently the return value is a const Use*. I'm wondering which part
> > is right and who's going to fix the cmake duchain tests?
> >
> > Andreas
> 
> Well, actually this pointer is a list. It just isn't a list object any more, 
> because that's not the way it is stored in the background, and uses() is 
> accessed too frequently to do a conversion on each access.

Please add that information to the api dox. Nowadays in OO land its
quite unusual to see a pointer into an array + length function in public
API.

> I will fix the cmake test.

Thanks

Andreas

-- 
Your business will go through a period of considerable expansion.




More information about the KDevelop-devel mailing list