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
 smart select is broken inside macro-based scopes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

slymz
Junior Member

USA
18 Posts

Posted - Mar 04 2021 :  10:24:39 PM  Show Profile  Reply with Quote

TEST( A, B ) {
   // inside of this scope Smart Select is broken
}


These are test point macros in Google Test. Valid code.

Here is a gif. First, starts by showing expected behavior with "Alt+[". Last frame is a single hit to "Alt+[" selecting entire file.





feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Mar 05 2021 :  10:12:33 AM  Show Profile  Reply with Quote
Can you please check and see if you get the same problem with this code sample:

#define MACRO_FUNCTION_NAME(funcName, paramList) void funcName(paramList)

MACRO_FUNCTION_NAME(SmartSelectFails, int nSize)
{
	int nEvenTotal = 0;
	for(int nCounter = 0; nCounter < nSize; ++nCounter)
	{
		if(0 == (nCounter % 2))
		{
			nEvenTotal += nCounter;
		}
	}
}

I am not seeing any problems here with this, so its possible the problem is related to Google Test macros. I am checking that now.

zen is the art of being at one with the two'ness
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Mar 05 2021 :  11:36:15 AM  Show Profile  Reply with Quote
I am seeing the same effect here when testing with Google test macros. Thank you for the clear description.

case=144501

zen is the art of being at one with the two'ness
Go to Top of Page

slymz
Junior Member

USA
18 Posts

Posted - Mar 05 2021 :  1:08:09 PM  Show Profile  Reply with Quote
Thanks Feline, and opening up a case. I'll keep my eye peeled, and please do let know if you need any further info.

Unrelated to this, this forum does not allow image attachments bigger than 100K. It was a bit of a pain to cut down the size of the gif just so that I could attach here.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Mar 08 2021 :  06:28:38 AM  Show Profile  Reply with Quote
The "obvious" work around didn't work, either due to the nature of the Google test macros, or how VA handles them. I will try some more experiments, and see what I find.

For uploading larger images, or any other files, you can always email support directly:

[email protected]

if you are continuing a conversation from the forum, please including this thread ID or URL in the description, so we can match it up. We monitor both the forum and email so it is down to which you prefer and is more suitable.

zen is the art of being at one with the two'ness
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