Add noexcept to completion_t definitions as well as declarations

This is required if we want to compile with exceptions enabled (which we
currently do not).
This commit is contained in:
ridiculousfish 2020-01-26 20:20:56 -08:00
parent 1aa0dfe91b
commit 89f5ae3e6a

View File

@ -214,9 +214,9 @@ completion_t::completion_t(wcstring comp, wcstring desc, string_fuzzy_match_t ma
flags(resolve_auto_space(completion, flags_val)) {}
completion_t::completion_t(const completion_t &) = default;
completion_t::completion_t(completion_t &&) = default;
completion_t::completion_t(completion_t &&) noexcept = default;
completion_t &completion_t::operator=(const completion_t &) = default;
completion_t &completion_t::operator=(completion_t &&) = default;
completion_t &completion_t::operator=(completion_t &&) noexcept = default;
completion_t::~completion_t() = default;
__attribute__((always_inline)) static inline bool natural_compare_completions(