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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to