Re: [cedet-semantic] Possible completion problem
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2009-11-27 16:06:25
|
Hi Michael, I think the problem here is that when the internal typecache is created, it does not treat the declaration of Private the type as belonging to AAA the same way as it handles the case for classes in namespaces. It does know a little about methods declared similarly, but methods don't need the implementation available since the prototype is usually sufficient. I don't see a quick fix for this at the moment. I'll keep this on my list of things to work on. Thanks Eric Michael Reiher wrote: > Hi > > Possibly I found a case that semantic can't interpret correctly. The problem > is when trying to complete members of "d" in AAA::aaa() in the example below. > Semantic doesn't seem to know any. When looking at the output of semantic- > adebug-analyze it seems all sematic knows about "d" is that it's of type > "class Private*". It ignores however the definition of the class in the same > file. > > Greets Michael > > > ------ aaa.h --------------------------------- > > class AAA > { > public: > AAA(); > > void aaa(); > > private: > class Private; > Private * const d; > }; > > ------ aaa.cpp ------------------------------ > > #include "aaa.h" > #include "bbb.h" > > class AAA::Private > { > Private() : bbb(0) { > } > > BBB* bbb; > }; > > void AAA::aaa() > { > d->_; // _ is position of cursor > } > > -------------------------------------------------- > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > cedet-semantic mailing list > ced...@li... > https://lists.sourceforge.net/lists/listinfo/cedet-semantic > |