diff --git a/clang/include/clang/AST/UnresolvedSet.h b/clang/include/clang/AST/UnresolvedSet.h index 26ee1cf71c813..12c825e434e58 100644 --- a/clang/include/clang/AST/UnresolvedSet.h +++ b/clang/include/clang/AST/UnresolvedSet.h @@ -59,8 +59,11 @@ class UnresolvedSetImpl { // UnresolvedSet. private: template 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 diff --git a/clang/include/clang/Sema/Lookup.h b/clang/include/clang/Sema/Lookup.h index 7efb19f574198..2cc4418c320dc 100644 --- a/clang/include/clang/Sema/Lookup.h +++ b/clang/include/clang/Sema/Lookup.h @@ -185,6 +185,11 @@ class LookupResult { 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);