BTW: I think there are actually two issues: First, the correct type of functions / methods is not found due to what I have commented in ParserThread::GetTokenBaseType() (I am working on that but its not so easy).
// TODO (Morten#5#): Handle stuff like the following gracefully:
// int __cdecl __MINGW_NOTHROW vscanf (const char * __restrict__, __VALIST);
1, we can add a function like "RemoveAttributeSpecifier()", so we can remove something like: __cdecl or __stdcall
2, __MINGW_NOTHROW can be macro replaced, either to an empty string, or to #define __MINGW_NOTHROW __attribute__ ((__nothrow__)), and I think the __attribute__ should be removed in the RemoveAttributeSpecifier().
3, we can heuristically remove all the tokens like "__XXXXXX".