]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: add noexcept to relevant methods of class ref_ptr
authorMatthieu Longo <matthieu.longo@arm.com>
Thu, 23 Oct 2025 16:20:50 +0000 (17:20 +0100)
committerMatthieu Longo <matthieu.longo@arm.com>
Mon, 26 Jan 2026 14:29:00 +0000 (14:29 +0000)
commit9fbbc2ed43ef26834ca46aededff3c569c2431c6
tree332bb08c3f7bf07b89a76efc5c1e7d86708b5fc8
parent449035c35f2169e0c690d83f28306275ab7f7463
gdb: add noexcept to relevant methods of class ref_ptr

This patch aims at improving code readability and maintainability
by adding the 'noexcept' attribute to some constructors and
methods of class 'ref_ptr' to make clear that no exception is
supposed to be raised from them.
As an additional benefit, the compiler doesn't need to generate
the stack unwinding code for those constructors and methods.

Approved-By: Tom Tromey <tom@tromey.com>
gdbsupport/gdb_ref_ptr.h