clang-tidy: Enable readability-qualified-auto check
This check aims to improve code readability by suggesting the use
of const auto * instead of auto for variables that are pointers
or iterators. This helps clarify the const-ness of the pointed-to
object or container elements.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: Ia132b6dd8ae4e3c16809326f6055396666abc95a
diff --git a/test/utest-serialize.cpp b/test/utest-serialize.cpp
index 8c75031..7a7188b 100644
--- a/test/utest-serialize.cpp
+++ b/test/utest-serialize.cpp
@@ -10,11 +10,11 @@
{
namespace fs = std::filesystem;
- static constexpr auto& path = "config/led-save-group.json";
- static constexpr auto& bmcBooted =
+ static constexpr auto path = "config/led-save-group.json";
+ static constexpr auto bmcBooted =
"/xyz/openbmc_project/led/groups/bmc_booted";
- static constexpr auto& powerOn = "/xyz/openbmc_project/led/groups/power_on";
- static constexpr auto& enclosureIdentify =
+ static constexpr auto powerOn = "/xyz/openbmc_project/led/groups/power_on";
+ static constexpr auto enclosureIdentify =
"/xyz/openbmc_project/led/groups/EnclosureIdentify";
Serialize serialize(path);