Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Rename symble skip c++ auto ret

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
superzmy Posted - Sep 17 2022 : 04:41:24 AM
auto XXX::fff() noexcept
-> EnumName
{
};

rename the EnumName skipped this position.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Sep 19 2022 : 12:21:27 PM
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; }
}

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