diff options
author | David Blaikie <dblaikie@gmail.com> | 2016-03-17 18:05:07 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2016-03-17 18:05:07 +0000 |
commit | 053ebfe0e764b6ed5c00d1734ba77e9f94c37770 (patch) | |
tree | e5504fe011399d707f84f452bf3050a9c1622d13 /include/clang/Sema/Lookup.h | |
parent | c79911c0d2409744f50b11567a938b43473a486d (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.h | 5 |
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); |