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/http/app.hpp b/http/app.hpp
index 9a4eb20..023eabb 100644
--- a/http/app.hpp
+++ b/http/app.hpp
@@ -65,9 +65,9 @@
return router.newRuleTagged<Tag>(std::move(rule));
}
- App& socket(int existing_socket)
+ App& socket(int existingSocket)
{
- socketFd = existing_socket;
+ socketFd = existingSocket;
return *this;
}
@@ -143,14 +143,13 @@
}
#ifdef BMCWEB_ENABLE_SSL
- App& sslFile(const std::string& crt_filename,
- const std::string& key_filename)
+ App& sslFile(const std::string& crtFilename, const std::string& keyFilename)
{
sslContext = std::make_shared<ssl_context_t>(
boost::asio::ssl::context::tls_server);
sslContext->set_verify_mode(boost::asio::ssl::verify_peer);
- sslContext->use_certificate_file(crt_filename, ssl_context_t::pem);
- sslContext->use_private_key_file(key_filename, ssl_context_t::pem);
+ sslContext->use_certificate_file(crtFilename, ssl_context_t::pem);
+ sslContext->use_private_key_file(keyFilename, ssl_context_t::pem);
sslContext->set_options(boost::asio::ssl::context::default_workarounds |
boost::asio::ssl::context::no_sslv2 |
boost::asio::ssl::context::no_sslv3 |
@@ -159,12 +158,12 @@
return *this;
}
- App& sslFile(const std::string& pem_filename)
+ App& sslFile(const std::string& pemFilename)
{
sslContext = std::make_shared<ssl_context_t>(
boost::asio::ssl::context::tls_server);
sslContext->set_verify_mode(boost::asio::ssl::verify_peer);
- sslContext->load_verify_file(pem_filename);
+ sslContext->load_verify_file(pemFilename);
sslContext->set_options(boost::asio::ssl::context::default_workarounds |
boost::asio::ssl::context::no_sslv2 |
boost::asio::ssl::context::no_sslv3 |