[llvm-bugs] [Bug 34402] New: Code completion shows implicitly deleted copy constructor

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Sep 1 01:40:16 PDT 2017


            Bug ID: 34402
           Summary: Code completion shows implicitly deleted copy
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ivan.donchevskii at qt.io
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Example code involves unique_ptr which causes copy constructor to be deleted.

#include <memory>
struct Foo {
    std::unique_ptr<int> val_;

int main() {
    Foo f;
    Foo g(<CURSOR>f);
    return 0;

c-index-test -code-completion-at=test.cpp:8:11 test.cpp

Gives these in results:
OverloadCandidate:{Text Foo}{LeftParen (}{CurrentParameter const Foo
&}{RightParen )} (1)
OverloadCandidate:{Text Foo}{LeftParen (}{CurrentParameter Foo &&}{RightParen
)} (1)
OverloadCandidate:{Text Foo}{LeftParen (}{RightParen )} (1)

which incorrectly includes copy constructor.

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/20170901/fcbf681e/attachment.html>

More information about the llvm-bugs mailing list