Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Bug: no function call in "find references results"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Alek86
Junior Member

Canada
20 Posts

Posted - Dec 07 2011 :  3:12:34 PM  Show Profile  Reply with Quote
the situation is quite tricky, I simplified it a little
I have VS 2008 SP1, VA 10.6.189.0 built 2011.10.02

main.cpp
struct S {
	void func() {}
};
//////////////////////////////////////////////////////////////////////////
struct S2 {
	S& GetS() {
		static S s;
		return s;
	}
};

void* GetS2() {
	static S2 s;
	return &s;
}
//////////////////////////////////////////////////////////////////////////
#define DEFINED_S (((S2*)GetS2())->GetS())

int main()
{
	DEFINED_S.func();
}


when I try find references for the function S::func() VA doesn't find it in the function main()

Edited by - Alek86 on Dec 07 2011 3:18:43 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 08 2011 :  1:48:38 PM  Show Profile  Reply with Quote
I am seeing the same effect here:

case=63245

Thank you for taking the time to build the simplified code snippet.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000