diff options
author | Ed Tanous <ed@tanous.net> | 2020-12-17 19:54:55 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2020-12-18 23:21:35 +0300 |
commit | 81ce609e30274435b4f8c3fc65340c6b6b153b0c (patch) | |
tree | f07c0bb8f950f81adc853845e009d9d40e254468 /http/http_server.hpp | |
parent | f16f62633a64f386fd0382703ff0949ea177f457 (diff) | |
download | bmcweb-81ce609e30274435b4f8c3fc65340c6b6b153b0c.tar.xz |
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
Diffstat (limited to 'http/http_server.hpp')
-rw-r--r-- | http/http_server.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/http/http_server.hpp b/http/http_server.hpp index 0be487f036..20b4e5084a 100644 --- a/http/http_server.hpp +++ b/http/http_server.hpp @@ -31,34 +31,34 @@ class Server public: Server(Handler* handlerIn, std::unique_ptr<boost::asio::ip::tcp::acceptor>&& acceptorIn, - std::shared_ptr<boost::asio::ssl::context> adaptor_ctx, + std::shared_ptr<boost::asio::ssl::context> adaptorCtx, std::shared_ptr<boost::asio::io_context> io = std::make_shared<boost::asio::io_context>()) : ioService(std::move(io)), acceptor(std::move(acceptorIn)), signals(*ioService, SIGINT, SIGTERM, SIGHUP), timer(*ioService), - handler(handlerIn), adaptorCtx(std::move(adaptor_ctx)) + handler(handlerIn), adaptorCtx(std::move(adaptorCtx)) {} Server(Handler* handlerIn, const std::string& bindaddr, uint16_t port, - const std::shared_ptr<boost::asio::ssl::context>& adaptor_ctx, + const std::shared_ptr<boost::asio::ssl::context>& adaptorCtx, const std::shared_ptr<boost::asio::io_context>& io = std::make_shared<boost::asio::io_context>()) : Server(handlerIn, std::make_unique<boost::asio::ip::tcp::acceptor>( *io, boost::asio::ip::tcp::endpoint( boost::asio::ip::make_address(bindaddr), port)), - adaptor_ctx, io) + adaptorCtx, io) {} - Server(Handler* handlerIn, int existing_socket, - const std::shared_ptr<boost::asio::ssl::context>& adaptor_ctx, + Server(Handler* handlerIn, int existingSocket, + const std::shared_ptr<boost::asio::ssl::context>& adaptorCtx, const std::shared_ptr<boost::asio::io_context>& io = std::make_shared<boost::asio::io_context>()) : Server(handlerIn, std::make_unique<boost::asio::ip::tcp::acceptor>( - *io, boost::asio::ip::tcp::v6(), existing_socket), - adaptor_ctx, io) + *io, boost::asio::ip::tcp::v6(), existingSocket), + adaptorCtx, io) {} void updateDateStr() |