What's the problem with TM? I might be missing something obvious, but a quick and dirty patch like http://pastebin.geany.org/ISAQT/ seems to mostly work.
It could possibly be improved to use the current scope to resolve direct methods and some other stuff, but that could be added. I mean like ```C++ class Foo { std::string something(int n) { return nullptr; }
int main() { return something(/* here, show Foo::something() only, not Bar::something() */); } };
class Bar { int something() { return 0; } };
/* But this works:
Foo::something(); Bar::something();
class Z { Foo memb; Z() { memb.something(); } }; */ ```