From: Hans Wennborg Date: Mon, 27 Oct 2014 21:50:49 +0000 (+0000) Subject: Give TypoExprState a move constructor and assignment operator to appease MSVC build X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d83872245bf540d28ea99006d44aa916516a13a;p=platform%2Fupstream%2Fllvm.git Give TypoExprState a move constructor and assignment operator to appease MSVC build llvm-svn: 220723 --- diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index 811dab4..3a3640c 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/include/clang/Sema/Sema.h @@ -2602,6 +2602,9 @@ private: std::unique_ptr Consumer; TypoDiagnosticGenerator DiagHandler; TypoRecoveryCallback RecoveryHandler; + TypoExprState(); + TypoExprState(TypoExprState&& other); + TypoExprState& operator=(TypoExprState&& other); }; /// \brief The set of unhandled TypoExprs and their associated state. diff --git a/clang/include/clang/Sema/SemaInternal.h b/clang/include/clang/Sema/SemaInternal.h index 76bbd66..e90f9f0 100644 --- a/clang/include/clang/Sema/SemaInternal.h +++ b/clang/include/clang/Sema/SemaInternal.h @@ -265,6 +265,20 @@ private: bool SearchNamespaces; }; +inline Sema::TypoExprState::TypoExprState() {} + +inline Sema::TypoExprState::TypoExprState(TypoExprState &&other) { + *this = std::move(other); +} + +inline Sema::TypoExprState &Sema::TypoExprState::operator=( + Sema::TypoExprState &&other) { + Consumer = std::move(other.Consumer); + DiagHandler = std::move(other.DiagHandler); + RecoveryHandler = std::move(RecoveryHandler); + return *this; +} + } // end namespace clang #endif