summaryrefslogtreecommitdiffstats
path: root/include/clang/Sema/Lookup.h
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
commit053ebfe0e764b6ed5c00d1734ba77e9f94c37770 (patch)
treee5504fe011399d707f84f452bf3050a9c1622d13 /include/clang/Sema/Lookup.h
parentc79911c0d2409744f50b11567a938b43473a486d (diff)
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263730 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Sema/Lookup.h')
-rw-r--r--include/clang/Sema/Lookup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Sema/Lookup.h b/include/clang/Sema/Lookup.h
index 7efb19f574..2cc4418c32 100644
--- a/include/clang/Sema/Lookup.h
+++ b/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);