MantisBT - Doomseeker |
View Issue Details |
|
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 [^]' |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2020-06-07 04:34 | WubTheCaptain | New Issue | |
2020-06-07 04:35 | WubTheCaptain | Description Updated | bug_revision_view_page.php?rev_id=13131#r13131 |
2020-06-07 20:22 | Pol M | Note Added: 0021384 | |
2020-06-07 20:23 | Pol M | Status | new => confirmed |