Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1609: Create Declaration Offered when it shouldn't

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
rhummer Posted - Oct 05 2007 : 12:06:05 PM
Using the test code:

bool fooBar()
{
	return true;
}

int main()
{
	if ( fooBar() )
	{
		return 1;
	}
	
	fooBar();

	return 0;
}


If I hover over fooBar() when it is used in the if statement, and trigger the Refactor Menu, I am offered 'Create Declaration' when I should not be.
4   L A T E S T    R E P L I E S    (Newest First)
support Posted - Aug 09 2012 : 01:47:00 AM
case=1120 is implemented in build 1912
feline Posted - Oct 05 2007 : 6:02:28 PM
oops, my mistake, I missed that:

case=9227
rhummer Posted - Oct 05 2007 : 4:32:11 PM
Well, it doesn't offer it if you over over fooBar() below the if statement. So it's a bit inconsistent.
feline Posted - Oct 05 2007 : 4:20:05 PM
Currently VA does not check to see if the declaration already exists, it just offers this refactoring anyway:

case=1120

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