[LLVMbugs] [Bug 19456] New: diagnose missing std::move calls
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Apr 16 17:07:07 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19456
Bug ID: 19456
Summary: diagnose missing std::move calls
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: delesley at google.com, dgregor at apple.com,
llvmbugs at cs.uiuc.edu
Classification: Unclassified
If we see:
* a function that has a parameter `p` that is either of non-reference class
type `T` or of type `T &&`, and
* `p` is only used once within the function definition, and
* that use is as the argument to a function call, and
* converting `p` from being an lvalue to being an xvalue would cause a
different overload to be selected
... then we should warn that the user probably meant to use `std::move(p)`.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140417/d7ebc7c1/attachment.html>
More information about the llvm-bugs
mailing list