Add clang-tidy file
This commit implements a clang-tidy file, and makes
some changes to get it to pass.
Most changes are naming or mechanical in nature.
Tested:
CI passed in docker.
Change-Id: I1f9acf546542c839b8f9facb5b8beff37c0d5909
Signed-off-by: Pavithra Barithaya <pavithra.b@ibm.com>
diff --git a/settings.cpp b/settings.cpp
index d0d5026..b662628 100644
--- a/settings.cpp
+++ b/settings.cpp
@@ -13,11 +13,7 @@
using namespace phosphor::logging;
using namespace sdbusplus::xyz::openbmc_project::Common::Error;
-constexpr auto mapperService = "xyz.openbmc_project.ObjectMapper";
-constexpr auto mapperPath = "/xyz/openbmc_project/object_mapper";
-constexpr auto mapperIntf = "xyz.openbmc_project.ObjectMapper";
-
-Objects::Objects(sdbusplus::bus_t& bus) : bus(bus)
+Objects::Objects(sdbusplus::bus_t& bus)
{
Interfaces settingsIntfs = {timeSyncIntf};
MapperResponse result;
@@ -39,9 +35,9 @@
for (const auto& iter : result)
{
const Path& path = iter.first;
- for (const auto& service_iter : iter.second)
+ for (const auto& serviceIter : iter.second)
{
- for (const Interface& interface : service_iter.second)
+ for (const Interface& interface : serviceIter.second)
{
if (timeSyncIntf == interface)
{