From 4fd2f16142bf28d65164fae2dfabd7acaf662403 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Mon, 29 Oct 2018 12:53:14 +0200 Subject: [PATCH] Clang-format --- Telegram/SourceFiles/base/lambda.h | 8 ++++---- Telegram/SourceFiles/base/unique_function.h | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Telegram/SourceFiles/base/lambda.h b/Telegram/SourceFiles/base/lambda.h index d13894f56..3a1d1ef0c 100644 --- a/Telegram/SourceFiles/base/lambda.h +++ b/Telegram/SourceFiles/base/lambda.h @@ -98,11 +98,11 @@ template constexpr bool is_large = (sizeof(std::decay_t -[[noreturn]] Return bad_const_call(const void *lambda, Args...) { Unexpected("base::lambda bad_const_call() called!"); } +template [[noreturn]] Return bad_const_call(const void *lambda, Args...) { + Unexpected("base::lambda bad_const_call() called!"); +} -template -struct vtable_base { +template struct vtable_base { using construct_copy_other_type = void (*)(void *, const void *); // dst, src using construct_move_other_type = void (*)(void *, void *); // dst, src using const_call_type = Return (*)(const void *, Args...); diff --git a/Telegram/SourceFiles/base/unique_function.h b/Telegram/SourceFiles/base/unique_function.h index 839af40fc..312291dab 100644 --- a/Telegram/SourceFiles/base/unique_function.h +++ b/Telegram/SourceFiles/base/unique_function.h @@ -61,7 +61,8 @@ public: private: [[noreturn]] Callable fail_construct() { Unexpected("Attempt to copy-construct a move-only type."); - }[[noreturn]] moveable_callable_wrap &fail_assign() { + } + [[noreturn]] moveable_callable_wrap &fail_assign() { Unexpected("Attempt to copy-assign a move-only type."); }