[PATCH] D18123: Fix implicit copy ctor and copy assignment operator warnings when -Wdeprecated passed.

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 17 11:10:19 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL263730: Fix implicit copy ctor and copy assignment operator warnings when… (authored by dblaikie).

Changed prior to commit:
  http://reviews.llvm.org/D18123?vs=50930&id=50961#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D18123

Files:
  cfe/trunk/include/clang/AST/UnresolvedSet.h
  cfe/trunk/include/clang/Sema/Lookup.h

Index: cfe/trunk/include/clang/AST/UnresolvedSet.h
===================================================================
--- cfe/trunk/include/clang/AST/UnresolvedSet.h
+++ cfe/trunk/include/clang/AST/UnresolvedSet.h
@@ -59,8 +59,11 @@
   // UnresolvedSet.
 private:
   template <unsigned N> friend class UnresolvedSet;
-  UnresolvedSetImpl() {}
-  UnresolvedSetImpl(const UnresolvedSetImpl &) {}
+  UnresolvedSetImpl() = default;
+  UnresolvedSetImpl(const UnresolvedSetImpl &) = default;
+  UnresolvedSetImpl(UnresolvedSetImpl &&) = default;
+  UnresolvedSetImpl &operator=(const UnresolvedSetImpl &) = default;
+  UnresolvedSetImpl &operator=(UnresolvedSetImpl &&) = default;
 
 public:
   // We don't currently support assignment through this iterator, so we might
Index: cfe/trunk/include/clang/Sema/Lookup.h
===================================================================
--- cfe/trunk/include/clang/Sema/Lookup.h
+++ cfe/trunk/include/clang/Sema/Lookup.h
@@ -185,6 +185,11 @@
       Shadowed(false)
   {}
 
+  // FIXME: Remove these deleted methods once the default build includes
+  // -Wdeprecated.
+  LookupResult(const LookupResult &) = delete;
+  LookupResult &operator=(const LookupResult &) = delete;
+
   ~LookupResult() {
     if (Diagnose) diagnose();
     if (Paths) deletePaths(Paths);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18123.50961.patch
Type: text/x-patch
Size: 1307 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160317/e24de328/attachment.bin>


More information about the cfe-commits mailing list