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
 Feature Requests
 Extend Code Inspection - Override checker
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Vladyslav
Starting Member

Ukraine
1 Posts

Posted - Oct 31 2021 :  06:26:59 AM  Show Profile  Reply with Quote
In Code Inspection tool, there is a checker "Overriding function without `override` specifier".
It is an amazing feature for supporting obsolete projects.
But it became annoying when `final` keyword is used.
In my code:
- all virtual functions have `virtual` prefix;
- all overridden function have `override` prefix;
If function have to be final I write it fully:
virtual void Foo() override final;

But this checker says "Remove redundant `virtual` and `override`" for lines with `final`.
Can you add some settings to not show such warnings?

feline
Whole Tomato Software

United Kingdom
17503 Posts

Posted - Nov 01 2021 :  08:16:03 AM  Show Profile  Reply with Quote
Is there a reason you don't want to remove the "virtual" and "override" keywords? You don't need them, since you have specified "final".

I am wondering if this is your preference, or if there is an actual reason you need both keywords.

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:
© 2021 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000