Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1614: Find References vs #define

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
accord Posted - Nov 09 2007 : 6:35:24 PM
VAX 1614, VS2005 SP1, WinXP SP2, C++


class cTest {
public:
	void Update();
};

class cTest2 {
public:
	void Update();
};

#define TEST(x) x.Update()

class cTest3 {
	void Update()
	{
		cTest test;
		cTest2 test2;

		TEST(test);
		TEST(test2);
	}
};


Paste this into a cpp, it will compile. Now use rename refactor on Update() in cTest class. Try to compile again.

As you can see the problem is, find references will find Update() in the #define also.
I think, references in #defines should not show, or should be marked by "?" icon at least.
2   L A T E S T    R E P L I E S    (Newest First)
support Posted - Feb 25 2013 : 12:18:58 PM
case=9860 is fixed in build 1929
feline Posted - Nov 12 2007 : 07:43:51 AM
I am seeing the same effect here. I agree, listing the #define entry with a question mark icon in Find References would be very sensible, and it should not be ticked by default in Rename:

case=9860

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