Author: dblaikie Date: Thu Mar 17 13:05:07 2016 New Revision: 263730 URL: http://llvm.org/viewvc/llvm-project?rev=263730&view=rev Log: Fix implicit copy ctor and copy assignment operator warnings when -Wdeprecated passed.
Fix implicit copy ctor and copy assignment operator warnings when -Wdeprecated passed. Patch by Don Hinton! Differential Revision: http://reviews.llvm.org/D18123 Modified: cfe/trunk/include/clang/AST/UnresolvedSet.h cfe/trunk/include/clang/Sema/Lookup.h Modified: cfe/trunk/include/clang/AST/UnresolvedSet.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/UnresolvedSet.h?rev=263730&r1=263729&r2=263730&view=diff ============================================================================== --- cfe/trunk/include/clang/AST/UnresolvedSet.h (original) +++ cfe/trunk/include/clang/AST/UnresolvedSet.h Thu Mar 17 13:05:07 2016 @@ -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 Modified: cfe/trunk/include/clang/Sema/Lookup.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Lookup.h?rev=263730&r1=263729&r2=263730&view=diff ============================================================================== --- cfe/trunk/include/clang/Sema/Lookup.h (original) +++ cfe/trunk/include/clang/Sema/Lookup.h Thu Mar 17 13:05:07 2016 @@ -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); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits