View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0003811 | Doomseeker | [All Projects] Cleanup | public | 2020-06-07 04:34 | 2020-06-07 20:23 |
|
Reporter | WubTheCaptain | |
Assigned To | | |
Priority | none | Severity | tweak | Reproducibility | always |
Status | confirmed | Resolution | open | |
Platform | | OS | | OS Version | |
Product Version | 1.3.1 | |
Target Version | | Fixed in Version | | |
|
Summary | 0003811: Special member functions don't have "= default;" (modernize-use-equals-default) |
Description | I'll just quote clang-tidy on this one, because of difficulty to describe it:
Quote This check replaces default bodies of special member functions with = default;. The explicitly defaulted function declarations enable more opportunities in optimization, because the compiler might treat explicitly defaulted functions as trivial. |
Steps To Reproduce | $ grep -r "::~" src/ | grep '{}' | wc -l
2
$ grep -r "()" src/ | grep '{}' | wc -l
24
$ grep -r "= default;" src/ | wc -l
0
I'm not sure how to handle or search for this, if applicable:
something()
{
} |
Additional Information | 'https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-equals-default.html [^]' |
|
Attached Files | |
|