commit | c0d01c87c3f0bca8ef949f33c13226d540624cda | [log] [tgz] |
---|---|---|
author | George Liu <liuxiwei@ieisystem.com> | Tue Jul 08 16:14:36 2025 +0800 |
committer | George Liu <liuxiwei@ieisystem.com> | Thu Jul 10 09:07:35 2025 +0800 |
tree | d14037cfff7870221fa5d2939e754ee7a3fd07bd | |
parent | a097c214f82e3613efbb64bc7963e2c6a3db60cd [diff] |
clang-tidy: fix some warnings Resolve the following: ``` sys_info_param.cpp:12:11: style: Variable 'callback' can be declared as reference to const [constVariableReference] auto& callback = iterator->second; ^ include/ipmid/sessionhelper.hpp:49:31: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] sessionIdString = sessionIdString.substr(0, pos); ^ include/ipmid/sessionhelper.hpp:36:14: style: The scope of the variable 'tempSessionHandle' can be reduced. [variableScope] uint16_t tempSessionHandle = 0; ^ include/ipmid/sessionhelper.hpp:77:47: performance: Function parameter 'objectPath' should be passed by const reference. [passedByValue] bool isSessionObjectMatched(const std::string objectPath, ^ include/ipmid/sessionhelper.hpp:50:31: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] sessionIdString = sessionIdString.substr(0, pos); ^ transport/serialbridge/test/serial_unittest.cpp:21:13: style: The scope of the variable 'c' can be reduced. [variableScope] uint8_t c; ^ ``` Change-Id: I5a34fc50a95c33367e8b5d67dcb94c46b8def94a Signed-off-by: George Liu <liuxiwei@ieisystem.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