ollydbg: no it doesn't work, tested many times at least on linux.
OK, I will check it.
Hi, oBF, you are right, I look at the source code, it was in:
bool EditorManager::SwapActiveHeaderSource()
But I see a lot of hacks here.
I think the correct way was:
Using the CodeCompletion-plugin, we have
TokenFilenamesMap m_FilenamesMap;
This contains all the file names parsed by CC, but the name is recorded in fullname style. Then we can do a search by the "base short name".
Yeah, brains are active here 8)
Maybe a stupidity, but why not let the C::B user to indicate the base directory for headers and the one for implementations. For example, in wxWidgets, it could be :
"[wxWidgets-base]\include" for .h
"[wxWidgets-base]\src" for .cpp
Then search recursively from the appropriated base and show dialog-box (for the user to choose) if there're several files with same filename. Of course, recursive search can be long, but only for big trees (so, big projects and/or libs).
-
EDIT : also, this recursive searching would be engaged only if .h and .cpp are not in the same directory (this to not slow down current behavior).