commit | 76889090d85dade0e4c486cbd4977d8275765fbe | [log] [tgz] |
---|---|---|
author | Willy Tu <wltu@google.com> | Mon Oct 17 05:33:54 2022 +0000 |
committer | Willy Tu <wltu@google.com> | Mon Oct 17 08:24:03 2022 +0000 |
tree | 34b1349356d2a4216f7cccea694e150aeaaaac9a | |
parent | 45aed6919d1d6ecdfbea93b6b596172d0b472ef7 [diff] |
fix clang-tidy error for overriding destructor Fixing the error like in ``` /usr/local/include/ipmid/types.hpp:294:28: error: non-constexpr declaration of '~basic_string' follows constexpr declaration [clang-diagnostic-error] inline ipmi::SecureString::~SecureString() ^ /../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/basic_string.h:794:7: note: previous declaration is here ~basic_string() ^ /usr/local/include/ipmid/types.hpp:300:28: error: non-constexpr declaration of '~vector' follows constexpr declaration [clang-diagnostic-error] inline ipmi::SecureBuffer::~SecureBuffer() ^ /../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/stl_vector.h:728:7: note: previous declaration is here ~vector() _GLIBCXX_NOEXCEPT ``` Remove using alias and overriding the destructor and inherent the class instead. Change-Id: Ia8972d8b194d8340e67da3e0f53165e42c25f643 Signed-off-by: Willy Tu <wltu@google.com>
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage