Skip to content

Commit

Permalink
Fix implicit copy ctor and copy assignment operator warnings when -Wd…
Browse files Browse the repository at this point in the history
…eprecated passed.

Fix implicit copy ctor and copy assignment operator warnings
when -Wdeprecated passed.

Patch by Don Hinton!

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

llvm-svn: 263730
  • Loading branch information
dwblaikie committed Mar 17, 2016
1 parent c4546ec commit a9ff7a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions clang/include/clang/AST/UnresolvedSet.h
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions clang/include/clang/Sema/Lookup.h
Expand Up @@ -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);
Expand Down

0 comments on commit a9ff7a1

Please sign in to comment.