[PATCH] D18123: Fix implicit copy ctor and copy assignment operator warnings when -Wdeprecated passed.
don hinton via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 12 15:42:54 PST 2016
hintonda created this revision.
hintonda added a reviewer: rjmccall.
hintonda added a subscriber: cfe-commits.
Fix implicit copy ctor and copy assignment operator warnings
when -Wdeprecated passed.
http://reviews.llvm.org/D18123
Files:
include/clang/AST/UnresolvedSet.h
include/clang/Sema/Lookup.h
Index: include/clang/Sema/Lookup.h
===================================================================
--- include/clang/Sema/Lookup.h
+++ include/clang/Sema/Lookup.h
@@ -185,6 +185,9 @@
Shadowed(false)
{}
+ LookupResult(const LookupResult &) = default;
+ LookupResult & operator=(const LookupResult &) = default;
+
~LookupResult() {
if (Diagnose) diagnose();
if (Paths) deletePaths(Paths);
Index: include/clang/AST/UnresolvedSet.h
===================================================================
--- include/clang/AST/UnresolvedSet.h
+++ include/clang/AST/UnresolvedSet.h
@@ -59,8 +59,9 @@
// UnresolvedSet.
private:
template <unsigned N> friend class UnresolvedSet;
- UnresolvedSetImpl() {}
- UnresolvedSetImpl(const UnresolvedSetImpl &) {}
+ UnresolvedSetImpl() = default;
+ UnresolvedSetImpl(const UnresolvedSetImpl &) = default;
+ UnresolvedSetImpl& operator=(const UnresolvedSetImpl &) = default;
public:
// We don't currently support assignment through this iterator, so we might
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18123.50529.patch
Type: text/x-patch
Size: 1035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160312/05ea744f/attachment.bin>
More information about the cfe-commits
mailing list