Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Add C++11 override keyword to fn declarations

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
jay.carlton Posted - Oct 23 2013 : 3:34:19 PM
Hi,

Now that the override keyword is supported in native C++ in VS 2012, it would be nice to add that annotation to all functions where it applies when refactoring or editing an existing class. That way, any change in the parent class to make an overridden function non-virtual or to rename it, etc, would be caught at compile time.

Could VA X sport an option to add that keyword to all overridden virtual functions in a class? Presumably the presence of that keyword might also help eliminate false positives when searching for references or definitions of functions, but that's a secondary benefit compared to the intellisense and compiler checking.

Thanks again,
Jay
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Oct 23 2013 : 4:12:36 PM
It makes sense. I have put in a feature request for this to see what the developers make of it.

case=77940

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