[clang-tidy] Replace {} with = default
Found with hicpp-use-equals-default Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
12f9437e22
commit
87cd545a1e
@ -437,8 +437,8 @@ template <typename S> struct char_t_impl<S, enable_if_t<is_string<S>::value>> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct error_handler {
|
struct error_handler {
|
||||||
FMT_CONSTEXPR error_handler() {}
|
FMT_CONSTEXPR error_handler() = default;
|
||||||
FMT_CONSTEXPR error_handler(const error_handler&) {}
|
FMT_CONSTEXPR error_handler(const error_handler&) = default;
|
||||||
|
|
||||||
// This function is intentionally not constexpr to give a compile-time error.
|
// This function is intentionally not constexpr to give a compile-time error.
|
||||||
FMT_NORETURN FMT_API void on_error(const char* message);
|
FMT_NORETURN FMT_API void on_error(const char* message);
|
||||||
@ -580,7 +580,7 @@ template <typename T> class buffer {
|
|||||||
|
|
||||||
buffer(const buffer&) = delete;
|
buffer(const buffer&) = delete;
|
||||||
void operator=(const buffer&) = delete;
|
void operator=(const buffer&) = delete;
|
||||||
virtual ~buffer() {}
|
virtual ~buffer() = default;
|
||||||
|
|
||||||
T* begin() FMT_NOEXCEPT { return ptr_; }
|
T* begin() FMT_NOEXCEPT { return ptr_; }
|
||||||
T* end() FMT_NOEXCEPT { return ptr_ + size_; }
|
T* end() FMT_NOEXCEPT { return ptr_ + size_; }
|
||||||
|
@ -232,8 +232,8 @@ FMT_FUNC Char internal::decimal_point_impl(locale_ref) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
FMT_API FMT_FUNC format_error::~format_error() FMT_NOEXCEPT {}
|
FMT_API FMT_FUNC format_error::~format_error() FMT_NOEXCEPT = default;
|
||||||
FMT_API FMT_FUNC system_error::~system_error() FMT_NOEXCEPT {}
|
FMT_API FMT_FUNC system_error::~system_error() FMT_NOEXCEPT = default;
|
||||||
|
|
||||||
FMT_FUNC void system_error::init(int err_code, string_view format_str,
|
FMT_FUNC void system_error::init(int err_code, string_view format_str,
|
||||||
format_args args) {
|
format_args args) {
|
||||||
|
@ -3030,7 +3030,7 @@ template <typename T, typename Char>
|
|||||||
struct formatter<T, Char,
|
struct formatter<T, Char,
|
||||||
enable_if_t<internal::type_constant<T, Char>::value !=
|
enable_if_t<internal::type_constant<T, Char>::value !=
|
||||||
internal::custom_type>> {
|
internal::custom_type>> {
|
||||||
FMT_CONSTEXPR formatter() {}
|
FMT_CONSTEXPR formatter() = default;
|
||||||
|
|
||||||
// Parses format specifiers stopping either at the end of the range or at the
|
// Parses format specifiers stopping either at the end of the range or at the
|
||||||
// terminating '}'.
|
// terminating '}'.
|
||||||
|
Loading…
Reference in New Issue
Block a user