@devs:
What do you think about this patch:
http://cmpt.benbmp.org/codeblocks/patches/dbg/find_project_from_file_01.patch ?
The idea of it is to remove some code duplication and to make life of plugin writers easier. I plan to use this method in the gdb/mi plugin.
I'm not sure I like the signature of the method. I'd rather make it return a std::pair, so the users of the method have a in-code documentation that the method returns two values - a cbProject and a ProjectFile.
Any comments are welcome. If there are no objections in the next week or so, I'll commit it. :-P