Bug #16338 2009-10-14 02:59

ir0nh34d

'Swap header / source' issue

I have a project that comprises many directories, and in those directories the same file names are generally repeated. Basically:

<root>

---<sub dir1>

Config.cpp

Config.h

---<sub dir2>

Config.cpp

Config.h

What I find is that if I open Config.cpp in <sub dir2> and right click on the tab and select 'swap header / source', I get Config.h from <sub dir1>.

What I find interesting is that if I go to the '#include <Config.h>' line in Config.cpp in <sub dir2> and right click and select 'Open #include file: Config.h', the proper Config.h (from <sub dir2>) is opened.

Category
Application::Editor
Group
 
Status
Open
Close date
 
Assigned to
 
athar 2009-10-14 12:55

I have this problem as well.

'swap header / source' sometimes opens files that are not even part of the current project, but one that has been closed already and therefore is no longer in the workspace.

mrwonko 2010-01-10 16:51

Have this problem as well, I had two classes in different namespaces and switching header/source would open the wrong one.

mrwonko 2010-01-10 17:47

This actually also applies to the Symbol Browsers. Classes with the same name from different namespaces are mixed up there, a class without a namespace also contains members from a class in a namespace but not the other way around.