r220723 - Give TypoExprState a move constructor and assignment operator to appease MSVC build
Hans Wennborg
hans at hanshq.net
Mon Oct 27 14:50:50 PDT 2014
Author: hans
Date: Mon Oct 27 16:50:49 2014
New Revision: 220723
URL: http://llvm.org/viewvc/llvm-project?rev=220723&view=rev
Log:
Give TypoExprState a move constructor and assignment operator to appease MSVC build
Modified:
cfe/trunk/include/clang/Sema/Sema.h
cfe/trunk/include/clang/Sema/SemaInternal.h
Modified: cfe/trunk/include/clang/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=220723&r1=220722&r2=220723&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Sema.h (original)
+++ cfe/trunk/include/clang/Sema/Sema.h Mon Oct 27 16:50:49 2014
@@ -2602,6 +2602,9 @@ private:
std::unique_ptr<TypoCorrectionConsumer> Consumer;
TypoDiagnosticGenerator DiagHandler;
TypoRecoveryCallback RecoveryHandler;
+ TypoExprState();
+ TypoExprState(TypoExprState&& other);
+ TypoExprState& operator=(TypoExprState&& other);
};
/// \brief The set of unhandled TypoExprs and their associated state.
Modified: cfe/trunk/include/clang/Sema/SemaInternal.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/SemaInternal.h?rev=220723&r1=220722&r2=220723&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/SemaInternal.h (original)
+++ cfe/trunk/include/clang/Sema/SemaInternal.h Mon Oct 27 16:50:49 2014
@@ -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
More information about the cfe-commits
mailing list