Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Bug: no function call in "find references results"

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Alek86 Posted - Dec 07 2011 : 3:12:34 PM
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()
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Dec 08 2011 : 1:48:38 PM
I am seeing the same effect here:

case=63245

Thank you for taking the time to build the simplified code snippet.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000