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
 Rename symble skip c++ auto ret
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

superzmy
Junior Member

China
20 Posts

Posted - Sep 17 2022 :  04:41:24 AM  Show Profile  Reply with Quote
auto XXX::fff() noexcept
-> EnumName
{
};

rename the EnumName skipped this position.

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Sep 19 2022 :  12:21:27 PM  Show Profile  Reply with Quote
So far I cannot reproduce this problem. Can you please try adding the following test code to one of your cpp files and try the test the comments describe, and see if you get the correct result or not?

class testEnumTrailingReturnType
{
	// Test - triggering Rename here on "ENUM_SHAPE" renames all instances of "ENUM_SHAPE"
	// compiling the code successfully proves that none have been missed
	enum ENUM_SHAPE { SHAPE_ROUND, SHAPE_TRIANGLE, SHAPE_SQUARE };
	
	auto TrailingTypeSimple(int nValueToConvert)->ENUM_SHAPE;
	auto TrailingTypeNoExcept(int nValueToConvert) noexcept -> ENUM_SHAPE;
};
	
auto testEnumTrailingReturnType::TrailingTypeSimple(int nValueToConvert) ->ENUM_SHAPE
{
	if (4 == nValueToConvert) { return SHAPE_SQUARE; }
	else if (3 == nValueToConvert) { return SHAPE_TRIANGLE; }
	else { return SHAPE_ROUND; }
}
	
auto testEnumTrailingReturnType::TrailingTypeNoExcept(int nValueToConvert) noexcept -> ENUM_SHAPE
{
	if (4 == nValueToConvert) { return SHAPE_SQUARE; }
	else if (3 == nValueToConvert) { return SHAPE_TRIANGLE; }
	else { return SHAPE_ROUND; }
}

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