[clang-tidy] Add missing override

Found with hicpp-use-override

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2019-11-07 13:02:05 -08:00 committed by Victor Zverovich
parent 87cd545a1e
commit 6868f888b2

View File

@ -578,7 +578,7 @@ class basic_memory_buffer : private Allocator, public internal::buffer<T> {
: Allocator(alloc) { : Allocator(alloc) {
this->set(store_, SIZE); this->set(store_, SIZE);
} }
~basic_memory_buffer() { deallocate(); } ~basic_memory_buffer() FMT_OVERRIDE { deallocate(); }
private: private:
// Move data from other to this buffer. // Move data from other to this buffer.
@ -658,7 +658,7 @@ class FMT_API format_error : public std::runtime_error {
format_error& operator=(const format_error&) = default; format_error& operator=(const format_error&) = default;
format_error(format_error&&) = default; format_error(format_error&&) = default;
format_error& operator=(format_error&&) = default; format_error& operator=(format_error&&) = default;
~format_error() FMT_NOEXCEPT; ~format_error() FMT_NOEXCEPT FMT_OVERRIDE;
}; };
namespace internal { namespace internal {
@ -2752,7 +2752,7 @@ class FMT_API system_error : public std::runtime_error {
system_error& operator=(const system_error&) = default; system_error& operator=(const system_error&) = default;
system_error(system_error&&) = default; system_error(system_error&&) = default;
system_error& operator=(system_error&&) = default; system_error& operator=(system_error&&) = default;
~system_error() FMT_NOEXCEPT; ~system_error() FMT_NOEXCEPT FMT_OVERRIDE;
int error_code() const { return error_code_; } int error_code() const { return error_code_; }
}; };