clang-tidy: enable clang-tidy
Enable the first check: readability-identifier-naming
Also fixed all check failures.
Tested:
1. compiles, no clang-tidy failures
2. the two daemons work correctly on hardware regarding DBus APIs
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: Ic415e857726e8f521c1d61a3e7f0c85121c0d284
diff --git a/phosphor-ldap-config/ldap_config.cpp b/phosphor-ldap-config/ldap_config.cpp
index 97e23ca..b7bd4c6 100644
--- a/phosphor-ldap-config/ldap_config.cpp
+++ b/phosphor-ldap-config/ldap_config.cpp
@@ -25,8 +25,8 @@
{
constexpr auto nslcdService = "nslcd.service";
-constexpr auto LDAPscheme = "ldap";
-constexpr auto LDAPSscheme = "ldaps";
+constexpr auto ldapScheme = "ldap";
+constexpr auto ldapsScheme = "ldaps";
constexpr auto certObjPath = "/xyz/openbmc_project/certs/client/ldap/1";
constexpr auto certRootPath = "/xyz/openbmc_project/certs/client/ldap";
constexpr auto authObjPath = "/xyz/openbmc_project/certs/authority/ldap";
@@ -362,11 +362,11 @@
{
return value;
}
- if (isValidLDAPURI(value, LDAPSscheme))
+ if (isValidLDAPURI(value, ldapsScheme))
{
secureLDAP = true;
}
- else if (isValidLDAPURI(value, LDAPscheme))
+ else if (isValidLDAPURI(value, ldapScheme))
{
secureLDAP = false;
}
@@ -717,11 +717,11 @@
cereal::BinaryInputArchive iarchive(is);
iarchive(*this);
- if (isValidLDAPURI(ldapServerURI(), LDAPscheme))
+ if (isValidLDAPURI(ldapServerURI(), ldapScheme))
{
secureLDAP = false;
}
- else if (isValidLDAPURI(ldapServerURI(), LDAPSscheme))
+ else if (isValidLDAPURI(ldapServerURI(), ldapsScheme))
{
secureLDAP = true;
}