summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2016-03-17 18:05:07 +0000
committerDavid Blaikie <dblaikie@gmail.com>2016-03-17 18:05:07 +0000
commita9ff7a14ec291c415202be83e98752199f2c8375 (patch)
tree5ed97da6adc8b13ccf65d9cc29010c7cc3844ed8 /clang
parentc4546ec0cf7bbf70a0e1b8ecc1f96b7bc52d6ef6 (diff)
downloadbcm5719-llvm-a9ff7a14ec291c415202be83e98752199f2c8375.tar.gz
bcm5719-llvm-a9ff7a14ec291c415202be83e98752199f2c8375.zip
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 llvm-svn: 263730
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/AST/UnresolvedSet.h7
-rw-r--r--clang/include/clang/Sema/Lookup.h5
2 files changed, 10 insertions, 2 deletions
diff --git a/clang/include/clang/AST/UnresolvedSet.h b/clang/include/clang/AST/UnresolvedSet.h
index 26ee1cf71c8..12c825e434e 100644
--- a/clang/include/clang/AST/UnresolvedSet.h
+++ b/clang/include/clang/AST/UnresolvedSet.h
@@ -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
diff --git a/clang/include/clang/Sema/Lookup.h b/clang/include/clang/Sema/Lookup.h
index 7efb19f5741..2cc4418c320 100644
--- a/clang/include/clang/Sema/Lookup.h
+++ b/clang/include/clang/Sema/Lookup.h
@@ -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);
OpenPOWER on IntegriCloud