[Bug 58502] code completion doesn't work with namespace
rraggi at trolltech.com
Tue Feb 24 11:36:03 UTC 2004
On Tuesday 24 February 2004 11:23, Steven T. Hatton wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> It has just occurred to me why Java requires directory structure to reflect
> package structure. The directory structure serves as a tree datastructure.
> would it be possible to simply build a list of fully qualified names? That
> would form a tree structure. Not with pointers, but simply with data
> content. You could sort it and then restrict the visibility linearly. Or
> have you already been down that path?
you can retrieve the full qualified name using the method ClassModel::scope()
and the ::name() of of your CodeModelitem..
of if you're using Catalog you have to call Tag::path().. all these
informations are already used in CppSupport part.
> I'm not sure if some kind of compression would be advantageous in that
> situation. IOW, you may not need to store each name in physical storage.
> Instead it is probably possible to store redundant parts of names, and use
> a smaller symbolic representation. If the means to accomplish that are
> available by simply 'gzipping' the memory space, and it can be accessed by
> existing, simple api calls that make it look like normal data, it might be
> worth considering.
I don't think it is a good idea to use compression.. it is too slow.. the best
way to solve the problem is to use a Storage Pool, and not a call to the
memory management(i.e new/delete) for each new AST node.
More information about the KDevelop-devel