-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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: performance-noexcept-move-constructor #7393
clang-tidy: performance-noexcept-move-constructor #7393
Conversation
Signed-off-by: Derek Argueta <dereka@pinterest.com>
Signed-off-by: Derek Argueta <dereka@pinterest.com>
/retest |
🔨 rebuilding |
This is subtle. TIL |
hmm coverage keeps core-dumping, seemingly on
Not seeing anything on master relating to a "fix" for this, gonna give it one more retest, and if that fails will merge master. BTW is there a way to access the error log file from Circle CI? I haven't figured that out yet for looking at the exact error log. |
/retest |
🔨 rebuilding |
@derekargueta that test flake is fixed in #7361 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks!
Description:
performance-noexcept-move-constructor
checks for move constructors that aren't declarednoexcept
, the reason being that STL containers will use the copy constructor for operations likeemplace_back
if the move constructor is not declarednoexcept
due to exception safety guarantees.http://www.hlsl.co.uk/blog/2017/12/1/c-noexcept-and-move-constructors-effect-on-performance-in-stl-containers
https://stackoverflow.com/a/32225460
Risk Level: low
Testing: existing
Docs Changes: N/A
Release Notes: N/A
Relates to #4863
Signed-off-by: Derek Argueta dereka@pinterest.com