Community
Participate
Working Groups
Build ID: 200905290807 Version: 6.0.0.200905290807 Steps To Reproduce: 1. have a project as follows: foo.h: #ifndef _FOO_H_ #define _FOO_H_ namespace foo { struct Foo { Foo(); // ... }; } #endif -------------------------------------------- foo.cpp: #include "foo.h" namespace foo { Foo::Foo() { } //... } -------------------------------------------- tests/someTest.cpp: namespace foo { namespace test { struct TestFoo: Foo { }; } } 2. place cursor within "Foo" in tests/someTest.cpp (alternatively - select Foo) 3. select Add Include from menu or use a shortcut 4. result: nothing happens; expected result: adding a line #include "../foo.h" More information: class Foo is indexed; most probably the cause is that required include would contain relative path (if the file using class Foo is not in subdirectory then the include is added correctly) there isn't any error reported whatsoever workaround: select Foo, use "Open Element", see where it is declared, add include manually
Created attachment 138099 [details] Fix
Fixed in HEAD > 20090603.