bindings: cxx: mark public classes as final
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 21 Feb 2023 13:28:12 +0000 (14:28 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 21 Feb 2023 13:28:12 +0000 (14:28 +0100)
commit7ba0d8d92b0a9d001d5544fc3df039cb45b84dff
tree3c6e1a4d118fa3c20bbe178560fb78e5de5227fb
parent8e3ca35d122a4f8a2636b8bb07fec93443895a4d
bindings: cxx: mark public classes as final

libgpiod C++ types are not meant to be inherited from. They already don't
even provide virtual destructors so mark them explicitly as final. With
that the destructors of throwable types can also be made non-virtual.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
13 files changed:
bindings/cxx/gpiodcxx/chip-info.hpp
bindings/cxx/gpiodcxx/chip.hpp
bindings/cxx/gpiodcxx/edge-event-buffer.hpp
bindings/cxx/gpiodcxx/edge-event.hpp
bindings/cxx/gpiodcxx/exception.hpp
bindings/cxx/gpiodcxx/info-event.hpp
bindings/cxx/gpiodcxx/line-config.hpp
bindings/cxx/gpiodcxx/line-info.hpp
bindings/cxx/gpiodcxx/line-request.hpp
bindings/cxx/gpiodcxx/line-settings.hpp
bindings/cxx/gpiodcxx/request-builder.hpp
bindings/cxx/gpiodcxx/request-config.hpp
bindings/cxx/gpiodcxx/timestamp.hpp