diff options
| -rw-r--r-- | clang-tools-extra/clangd/Context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/Context.h b/clang-tools-extra/clangd/Context.h index 33e946b6d63..c64780caf44 100644 --- a/clang-tools-extra/clangd/Context.h +++ b/clang-tools-extra/clangd/Context.h @@ -95,6 +95,11 @@ private: Context(std::shared_ptr<const Data> DataPtr); public: + /// Same as Context::empty(), please use Context::empty() instead. + /// Constructor is defined to workaround a bug in MSVC's version of STL. + /// (arguments of std::future<> must be default-construcitble in MSVC). + Context() = default; + /// Move-only. Context(Context const &) = delete; Context &operator=(const Context &) = delete; |

