diff --git a/clang-tools-extra/clangd/support/Context.h b/clang-tools-extra/clangd/support/Context.h index 926add18d88aa8..2f403aebd3bbac 100644 --- a/clang-tools-extra/clangd/support/Context.h +++ b/clang-tools-extra/clangd/support/Context.h @@ -155,7 +155,7 @@ class Context { }; template class TypedAnyStorage : public Context::AnyStorage { - static_assert(std::is_same::type, T>::value, + static_assert(std::is_same, T>::value, "Argument to TypedAnyStorage must be decayed"); public: @@ -200,7 +200,7 @@ class [[nodiscard]] WithContext { class [[nodiscard]] WithContextValue { public: template - WithContextValue(const Key &K, typename std::decay::type V) + WithContextValue(const Key &K, std::decay_t V) : Restore(Context::current().derive(K, std::move(V))) {} // Anonymous values can be used for the destructor side-effect. diff --git a/clang-tools-extra/clangd/support/Function.h b/clang-tools-extra/clangd/support/Function.h index dc9216bc537534..5437729d91b62a 100644 --- a/clang-tools-extra/clangd/support/Function.h +++ b/clang-tools-extra/clangd/support/Function.h @@ -93,7 +93,7 @@ template class Event { } private: - static_assert(std::is_same::type, T>::value, + static_assert(std::is_same, T>::value, "use a plain type: event values are always passed by const&"); std::recursive_mutex ListenersMu;