-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Clearing the way for LLVM 13 #2266
Conversation
Clang 13 has new warnings to silence: * `-Wdeprecated-copy`: Warns when implicit generation of a copy constructor (respectively copy assignment operator) is deprecated due to the presence of a user-defined copy assignment operator (resp. copy constructor). * `-Wunused-but-set-variable`: Warns when a variable is only ever assigned to. (This presumably ignores class types, or at least classes with non-trivial destructors.) These changes make us nearly Clang 13-clean. There are also three known-failing libcxx tests that pass with Clang 13 since it no longer emits some false positive `-Wdangling` warnings.
This comment has been minimized.
This comment has been minimized.
@@ -57,8 +57,6 @@ struct _Monobj { // store reference to monetary amount | |||
|
|||
_Money& _Val; // the monetary amount reference | |||
bool _Intl; // international flag | |||
|
|||
_Monobj& operator=(const _Monobj&) = delete; |
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.
No change requested: I vaguely recall that these were deleted because of obnoxious compiler warnings of the form "whoa, there's a reference data member, I won't be able to generate an assignment operator, and I'm going to warn about this even before you attempt to assign any objects". I believe that these warnings were fixed 🎉 and if we're not seeing them in the test suite then we're good to go.
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for preemptively fixing these warnings! 🛠️ ✔️ 😸 |
Clang 13 has new warnings to silence:
-Wdeprecated-copy
: Warns when implicit generation of a copy constructor (respectively copy assignment operator) is deprecated due to the presence of a user-defined copy assignment operator (resp. copy constructor).-Wunused-but-set-variable
: Warns when a variable is only ever assigned to. (This presumably ignores class types, or at least classes with non-trivial destructors.)These changes make us nearly Clang 13-clean. There are also three known-failing libcxx tests that pass with Clang 13 since it no longer emits some false positive
-Wdangling
warnings. We can't change those tests from XFAIL to PASS until we update our toolset to a VS preview with Clang 13, which will probably happen in the 17.1 preview series.