T O P I C R E V I E W |
xMRi |
Posted - Feb 24 2021 : 08:38:49 AM When I add a virtual function with the refactoring the function is added with the keywords virtual and override.
But the code inspector says that the virtual keyword can be removed. Doesn't really make sense. |
3 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Feb 25 2021 : 11:19:24 AM The option names have changed slightly since I last updated the notes I copy and paste them from, oops. In VA 2399 the option is now:
VA Options -> Code Generation -> Add keyword to generated C++ methods: override / virtual / virtual and override
where you pick one of the three options from the pull down list, and the default for a clean install of VA is "override", which is what Code Inspection recommends. |
xMRi |
Posted - Feb 25 2021 : 02:59:34 AM Ok. Thanks. I missed the settings. I never changed them. So I assume that I use the defaults. |
feline |
Posted - Feb 24 2021 : 09:04:45 AM Adding the virtual keyword is controlled via the setting:
VA Options -> Code Generation -> Use virtual keyword for generated C++ methods
and adding the override keyword is controlled via the setting:
VA Options -> Code Generation -> Use override keyword for generated C++ methods
I need to check the default settings and read up on these keywords |