From d5fc56db4bdebcf4f45e39e9c9d0f40229de8cea Mon Sep 17 00:00:00 2001 From: Levi Behunin Date: Sun, 29 Jan 2023 13:54:13 -0700 Subject: Move to Clang Format 15 Depends on https://github.com/yuzu-emu/build-environments/pull/69 clang-15 primary run --- src/common/make_unique_for_overwrite.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/common/make_unique_for_overwrite.h') diff --git a/src/common/make_unique_for_overwrite.h b/src/common/make_unique_for_overwrite.h index c7413cf51..17f81bba4 100644 --- a/src/common/make_unique_for_overwrite.h +++ b/src/common/make_unique_for_overwrite.h @@ -9,17 +9,19 @@ namespace Common { template -requires(!std::is_array_v) std::unique_ptr make_unique_for_overwrite() { + requires(!std::is_array_v) +std::unique_ptr make_unique_for_overwrite() { return std::unique_ptr(new T); } template -requires std::is_unbounded_array_v std::unique_ptr make_unique_for_overwrite(std::size_t n) { + requires std::is_unbounded_array_v +std::unique_ptr make_unique_for_overwrite(std::size_t n) { return std::unique_ptr(new std::remove_extent_t[n]); } template -requires std::is_bounded_array_v + requires std::is_bounded_array_v void make_unique_for_overwrite(Args&&...) = delete; } // namespace Common -- cgit v1.2.3