Fix .clang-tidy
camelLower is not a type, camelBack is.
Changes were made automatically with clang-tidy --fix-errors
To be able to apply changes automatically, the only way I've found that
works was to build the version of clang/clang-tidy that yocto has, and
run the fix script within bitbake -c devshell bmcweb. Unfortunately,
yocto has clang-tidy 11, which can apparently find a couple extra errors
in tests we already had enabled. As such, a couple of those are also
included.
Tested:
Ran clang-tidy-11 and got a clean result.
Signed-off-by: Ed Tanous <ed@tanous.net>
Change-Id: I9d1080b67f0342229c2f267160849445c065ca51
diff --git a/include/ssl_key_handler.hpp b/include/ssl_key_handler.hpp
index 93fe5d0..39e83d7 100644
--- a/include/ssl_key_handler.hpp
+++ b/include/ssl_key_handler.hpp
@@ -355,7 +355,7 @@
}
inline std::shared_ptr<boost::asio::ssl::context>
- getSslContext(const std::string& ssl_pem_file)
+ getSslContext(const std::string& sslPemFile)
{
std::shared_ptr<boost::asio::ssl::context> mSslContext =
std::make_shared<boost::asio::ssl::context>(
@@ -376,9 +376,9 @@
BMCWEB_LOG_DEBUG << "Using default TrustStore location: " << trustStorePath;
mSslContext->add_verify_path(trustStorePath);
- mSslContext->use_certificate_file(ssl_pem_file,
+ mSslContext->use_certificate_file(sslPemFile,
boost::asio::ssl::context::pem);
- mSslContext->use_private_key_file(ssl_pem_file,
+ mSslContext->use_private_key_file(sslPemFile,
boost::asio::ssl::context::pem);
// Set up EC curves to auto (boost asio doesn't have a method for this)