]> granicus.if.org Git - clang/commitdiff
Fix implicit copy ctor and copy assignment operator warnings when -Wdeprecated passed.
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 17 Mar 2016 18:05:07 +0000 (18:05 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 17 Mar 2016 18:05:07 +0000 (18:05 +0000)
Fix implicit copy ctor and copy assignment operator warnings
when -Wdeprecated passed.

Patch by Don Hinton!

Differential Revision: http://reviews.llvm.org/D18123

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263730 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/UnresolvedSet.h
include/clang/Sema/Lookup.h

index 26ee1cf71c813464d2d768c5e366345862261bf6..12c825e434e582256ab392b36cbe0d9317b1ecae 100644 (file)
@@ -59,8 +59,11 @@ class UnresolvedSetImpl {
   // 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 7efb19f57419884287d883b6cb3ba748faebc09d..2cc4418c320dc656c165dc6ececf958813d12981 100644 (file)
@@ -185,6 +185,11 @@ public:
       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);