[cfe-dev] Should clang-tidys 'use-after-move' consider std::forward

Manuel Klimek via cfe-dev cfe-dev at lists.llvm.org
Thu Sep 14 04:53:38 PDT 2017


+Martin

On Tue, Sep 12, 2017 at 5:19 PM Jonas Toth via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hello everybody,
>
> when reading the code for `misc-use-after-move` in clang-tidy i saw,
> that the check explicitly matches "std::move", but not "std::forward".
> Since "std::forward" is a conditional move, shouldn't it be matched as
> well, or is it implicitly caught?
>
> Regards, Jonas
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170914/7221b906/attachment.html>


More information about the cfe-dev mailing list