No luck with reproduce. I may trying something different?
I used this in the header:
class SomeClass {
static DWORD GetLastError();
void TestFunction();
};
class OtherClass {
void TestFunction();
};
...and this in the cpp:
DWORD SomeClass::GetLastError()
{
return 0;
}
void SomeClass::TestFunction()
{
GetLastError();
::GetLastError();
}
void GlobalFunction()
{
GetLastError();
}
void OtherClass::TestFunction()
{
GetLastError();
}
I run find references on Global GetLastError() and on on GetLastError() of SomeClass and the references was correct in both cases. Can you try this example?