[clang-tools-extra] r309705 - [clangd] Fixed MSVC compilation failures.

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 1 10:17:37 PDT 2017


Author: ibiryukov
Date: Tue Aug  1 10:17:37 2017
New Revision: 309705

URL: http://llvm.org/viewvc/llvm-project?rev=309705&view=rev
Log:
[clangd] Fixed MSVC compilation failures.

Modified:
    clang-tools-extra/trunk/clangd/ClangdUnit.h

Modified: clang-tools-extra/trunk/clangd/ClangdUnit.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ClangdUnit.h?rev=309705&r1=309704&r2=309705&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/ClangdUnit.h (original)
+++ clang-tools-extra/trunk/clangd/ClangdUnit.h Tue Aug  1 10:17:37 2017
@@ -104,6 +104,10 @@ private:
 // Provides thread-safe access to ParsedAST.
 class ParsedASTWrapper {
 public:
+  // MSVC does not allow to use types without default constructor in
+  // std::promise<> template arguments.
+  ParsedASTWrapper() = default;
+
   ParsedASTWrapper(ParsedASTWrapper &&Wrapper);
   ParsedASTWrapper(llvm::Optional<ParsedAST> AST);
 




More information about the cfe-commits mailing list