[clangd] fix MSVC build errors

llvm-svn: 317553
This commit is contained in:
Sam McCall 2017-11-07 08:57:54 +00:00
parent 5529a244e1
commit c2055486eb
2 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@
#include "llvm/Support/Format.h"
using namespace llvm;
namespace clang {
namespace clangd {
namespace json {
using namespace llvm;
void Expr::copyFrom(const Expr &M) {
Type = M.Type;

View File

@ -154,7 +154,7 @@ public:
ObjectKey(const llvm::formatv_object_base &V) : ObjectKey(V.str()) {}
ObjectKey(const ObjectKey &C) { *this = C; }
ObjectKey(ObjectKey &&C) = default;
ObjectKey(ObjectKey &&C) : ObjectKey(static_cast<const ObjectKey &&>(C)) {}
ObjectKey &operator=(const ObjectKey &C) {
if (C.Owned) {
Owned.reset(new std::string(*C.Owned));