[PATCH] D119670: [clang] Warn on unqualified calls to std::move and std::forward
Arthur O'Dwyer via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 24 11:11:24 PST 2022
I thought I caught all of them, too! I encourage someone with commit rights
to land the missing five characters "std::" right now, and/or I'll be able
to take my own look in about 6 hours from now.
Arthur
On Thu, Feb 24, 2022, 2:06 PM Corentin Jabot via Phabricator <
reviews at reviews.llvm.org> wrote:
> cor3ntin added a comment.
>
> In D119670#3343726 <https://reviews.llvm.org/D119670#3343726>,
> @erichkeane wrote:
>
> > In D119670#3343718 <https://reviews.llvm.org/D119670#3343718>, @rnk
> wrote:
> >
> >> This broke our libc++ -Werror build:
> >>
> >> llvm-project/libcxx/src/filesystem/directory_iterator.cpp:107:57:
> error: unqualified call to std::move [-Werror,-Wunqualified-std-cast-call]
> >>
> __root_(move(other.__root_)),
> >> ^
> >> std::
> >>
> >> We can disable the warning, but we look forward to an upstream
> resolution.
> >
> > This is exactly the kind of case that this warning is designed to
> catch. Unqualified calls std::move is what we're trying to catch.
>
> The issue is that for its own tests, libc++ headers are not considered
> system headers. we should fix libc++. I can do that later today. I though
> @Quuxplusone did.
>
>
> Repository:
> rG LLVM Github Monorepo
>
> CHANGES SINCE LAST ACTION
> https://reviews.llvm.org/D119670/new/
>
> https://reviews.llvm.org/D119670
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220224/d4a99cc0/attachment.html>
More information about the cfe-commits
mailing list