Closed jonasstein closed 4 years ago
Hi Jonas
This is a Codan checker we inherit from Eclipse CDT. We have it disabled by default, because it is harmful to parenthesize return expressions in C++. You should only enable this check if you have a very good reason to, like nonsensical coding guidelines that are forced upon you.
To disable it, open the code analysis settings: Window -> Preferences -> C/C++ -> Code Analysis
and uncheck Coding Style -> Return with parenthesis
I hope this helps. Regards Thomas
Cevelop 1.13.0-201910070714 warns about return without parenthesis:
I am not sure, if this warning should appear in general. Examples on https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-out-multi do not use
()
. It would be great, if the warning could be more specific when to use () and when not, or provide a source for additional information.