Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003811Doomseeker[All Projects] Cleanuppublic2020-06-07 04:342020-06-07 20:23
ReporterWubTheCaptain 
Assigned To 
PrioritynoneSeveritytweakReproducibilityalways
StatusconfirmedResolutionopen 
PlatformOSOS Version
Product Version1.3.1 
Target VersionFixed in Version 
Summary0003811: Special member functions don't have "= default;" (modernize-use-equals-default)
DescriptionI'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

- Relationships

-  Notes
User avatar (0021384)
Pol M (developer)
2020-06-07 20:22

Take note that = default does not apply for user-defined functions (like the something() you mention), but yeah, go for it :)

Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2020-06-07 04:34 WubTheCaptain New Issue
2020-06-07 04:35 WubTheCaptain Description Updated View Revisions
2020-06-07 20:22 Pol M Note Added: 0021384
2020-06-07 20:23 Pol M Status new => confirmed






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker