Re: [CEDET-devel] Problems with completion of inherited functions outside of local scope
Brought to you by:
zappo
From: David E. <de...@ra...> - 2009-10-08 09:42:26
|
Eric M. Ludlam <er...@si...> writes: > Thanks for taking time to create this use case. When I put parent.h and > child.cpp into the same directory, I got both child_fun, and parent_fun > in my completion list when using > `semantic-analyze-possible-completions'. You're right. I'm on a different machine now, and here it indeed works. I don't know what happened; maybe I still had some local changes there... However, I think I finally figured out the real culprit in wxWidget. The 'child' definition is in another header, but in that one the parent definition is *not* included: --------------- parent.h ----------------- class parent { public: void parent_fun () { }; }; ------------------------------------------ --------------- child.h ------------------ // No #include of parent.h ! class child : public parent { public: void child_fun () { }; }; ------------------------------------------ --------------- test.cpp ----------------- #include "parent.h" #include "child.h" void fun() { child c; c. // <--- complete here } ------------------------------------------ Regards, David |