[cfe-dev] [llvm-dev] Spurious cast warning for C++?

Craig Topper via cfe-dev cfe-dev at lists.llvm.org
Sun Apr 9 12:35:31 PDT 2017


This is question is probably better on the clang  cfe-dev list.

On Sun, Apr 9, 2017 at 12:01 PM Brennan Vincent via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> How difficult would it be to add a warning to Clang when the programmer
> performs a cast that provably has no effect?
>
> A particular case I have in mind is someone getting confused and calling
> std::move on an argument to a copy-constructor for a class that doesn't
> implement move semantics.
>
> I would be grateful if someone either (1) told me why this is
> difficult/impossible, or (2) gave me some pointers to where I could
> start trying to implement it...
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-- 
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170409/e38080eb/attachment.html>


More information about the cfe-dev mailing list