hintonda updated this revision to Diff 50611.
hintonda added a comment.
Add move ctor and assignment operator defauls to match
UnresolvedSetImpl's contained SmallVector.
Add FIXME note to LookupResult. Will address FIXME once Marina's
pending change to Sema::LookupInlineAsmField() is available.
http://reviews.llvm.org/D18123
Files:
include/clang/AST/UnresolvedSet.h
include/clang/Sema/Lookup.h
Index: include/clang/Sema/Lookup.h
===================================================================
--- include/clang/Sema/Lookup.h
+++ include/clang/Sema/Lookup.h
@@ -185,6 +185,11 @@
Shadowed(false)
{}
+ // FIXME: Change these to delete once Sema::LookupInlineAsmField is fixed to
+ // not use them.
+ LookupResult(const LookupResult &) = default;
+ LookupResult & operator=(const LookupResult &) = default;
+
~LookupResult() {
if (Diagnose) diagnose();
if (Paths) deletePaths(Paths);
Index: include/clang/AST/UnresolvedSet.h
===================================================================
--- include/clang/AST/UnresolvedSet.h
+++ 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: include/clang/Sema/Lookup.h
===================================================================
--- include/clang/Sema/Lookup.h
+++ include/clang/Sema/Lookup.h
@@ -185,6 +185,11 @@
Shadowed(false)
{}
+ // FIXME: Change these to delete once Sema::LookupInlineAsmField is fixed to
+ // not use them.
+ LookupResult(const LookupResult &) = default;
+ LookupResult & operator=(const LookupResult &) = default;
+
~LookupResult() {
if (Diagnose) diagnose();
if (Paths) deletePaths(Paths);
Index: include/clang/AST/UnresolvedSet.h
===================================================================
--- include/clang/AST/UnresolvedSet.h
+++ 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
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits