https://bugs.llvm.org/show_bug.cgi?id=34402
Bug ID: 34402
Summary: Code completion shows implicitly deleted copy
constructor
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangb...@nondot.org
Reporter: ivan.donchevs...@qt.io
CC: dgre...@apple.com, llvm-bugs@lists.llvm.org
Example code involves unique_ptr which causes copy constructor to be deleted.
test.cpp:
#include <memory>
struct Foo {
std::unique_ptr<int> val_;
};
int main() {
Foo f;
Foo g(<CURSOR>f);
return 0;
}
Calling
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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs