Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 smart select is broken inside macro-based scopes

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
slymz Posted - Mar 04 2021 : 10:24:39 PM

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.





4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 08 2021 : 06:28:38 AM
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.
slymz Posted - Mar 05 2021 : 1:08:09 PM
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.
feline Posted - Mar 05 2021 : 11:36:15 AM
I am seeing the same effect here when testing with Google test macros. Thank you for the clear description.

case=144501
feline Posted - Mar 05 2021 : 10:12:33 AM
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.

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