From ed79ff5fe0a4005ccdb3742e0b84a7a9abe0596e Mon Sep 17 00:00:00 2001 From: Jonathan Watson <23344719+jonathanjameswatson@users.noreply.github.com> Date: Sat, 7 Oct 2023 12:43:10 +0100 Subject: [PATCH] lsp: Separate includes and use enable_if_t --- lspserver/include/lspserver/LSPBinder.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lspserver/include/lspserver/LSPBinder.h b/lspserver/include/lspserver/LSPBinder.h index 9e9656d6c..36f71ac3f 100644 --- a/lspserver/include/lspserver/LSPBinder.h +++ b/lspserver/include/lspserver/LSPBinder.h @@ -6,6 +6,7 @@ #include #include #include + #include namespace lspserver { @@ -13,7 +14,7 @@ namespace lspserver { namespace detail { template -typename std::enable_if, T>::type +typename std::enable_if_t, T> valueOrUninitialized(const std::optional &OptionalDefault) { T Result; if (OptionalDefault) { @@ -23,7 +24,7 @@ valueOrUninitialized(const std::optional &OptionalDefault) { } template -typename std::enable_if, T>::type +typename std::enable_if_t, T> valueOrUninitialized(const std::optional &OptionalDefault) { return OptionalDefault.value(); } @@ -54,8 +55,7 @@ llvm::Expected parseParamWithOptionalDefault( } // namespace detail template -typename std::enable_if, - llvm::Expected>::type +typename std::enable_if_t, llvm::Expected> parseParam(const llvm::json::Value &Raw, llvm::StringRef PayloadName, llvm::StringRef PayloadKind) { return detail::parseParamWithOptionalDefault(Raw, PayloadName,