This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Make sure cals to std::move are always qualified.
ClosedPublic

Authored by cor3ntin on Feb 24 2022, 11:58 AM.

Details

Summary

This fixes instances of the newly added
-Wunqualified-std-cast-call.

Diff Detail

Event Timeline

cor3ntin requested review of this revision.Feb 24 2022, 11:58 AM
cor3ntin created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2022, 11:58 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
cor3ntin updated this revision to Diff 411206.Feb 24 2022, 11:59 AM

Change commit message.

Please use std:: instead of _VSTD::.

cor3ntin updated this revision to Diff 411209.Feb 24 2022, 12:15 PM

_VSTD:: -> std::

Where has -Wunqualified-std-cast-call been added?

aaron.ballman added a subscriber: aaron.ballman.

Adding some additional reviewers.

FWIW, the changes look correct to me, but I'm not a regular reviewer for libc++.

rnk added a comment.Feb 24 2022, 2:05 PM

Where has -Wunqualified-std-cast-call been added?

It is now part of clang's default warning set, so the latest version of clang warns on these calls.

rnk accepted this revision.Feb 24 2022, 2:05 PM

lgtm

I'm not a libc++ reviewer, but I think it's reasonable to push this to unbreak the build.

philnik accepted this revision as: philnik.Feb 24 2022, 2:13 PM

If it's enabled by default, this LGTM if CI is happy, but please wait for a second libc++ approver.

Quuxplusone accepted this revision.Feb 24 2022, 4:55 PM
Quuxplusone added a subscriber: Quuxplusone.

LGTM, and will land it now.

This revision is now accepted and ready to land.Feb 24 2022, 4:55 PM