Skip to content

Commit

Permalink
Clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
berkus committed Oct 31, 2018
1 parent ee47a1c commit 4fd2f16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Telegram/SourceFiles/base/lambda.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ template <typename Lambda> constexpr bool is_large = (sizeof(std::decay_t<Lambda
Unexpected("base::lambda bad_construct_copy() called!");
}

template <typename Return, typename... Args>
[[noreturn]] Return bad_const_call(const void *lambda, Args...) { Unexpected("base::lambda bad_const_call() called!"); }
template <typename Return, typename... Args>[[noreturn]] Return bad_const_call(const void *lambda, Args...) {
Unexpected("base::lambda bad_const_call() called!");
}

template <typename Return, typename... Args>
struct vtable_base {
template <typename Return, typename... Args> 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...);
Expand Down
3 changes: 2 additions & 1 deletion Telegram/SourceFiles/base/unique_function.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ template <typename Callable> class moveable_callable_wrap {
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.");
}

Expand Down

0 comments on commit 4fd2f16

Please sign in to comment.