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);
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);
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits