Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-tidy modernize-use-equals-default #9485

Merged
merged 2 commits into from
May 18, 2018

Conversation

dagar
Copy link
Member

@dagar dagar commented May 18, 2018

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.

https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-equals-default.html

@dagar dagar force-pushed the pr-clang-tidy-google-explicit-constructor branch from 56e13af to 8dfc76a Compare May 18, 2018 04:42
@LorenzMeier
Copy link
Member

Did you run CPU and RAM tests before and after applying the change? I'm merging it anyway, but I would love to see the results.

@LorenzMeier LorenzMeier merged commit da5a904 into master May 18, 2018
@LorenzMeier LorenzMeier deleted the pr-clang-tidy-google-explicit-constructor branch May 18, 2018 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants