https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82685

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Pavel I. Kryukov from comment #3)
> It seems that Clang-Tidy simply checks whether `noexcept` is specified, is
> it a Clang-Tidy problem then?

I would say so, yes. Not every function without noexcept will throw for all
input arguments. Obviously a constexpr function that just invokes a constexpr
constructor that just sets two trivial member variables can't throw, under any
circumstances, ever.

I'll add 'noexcept' to those functions anyway, as it doesn't hurt.

Reply via email to