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/obmc_console.hpp b/include/obmc_console.hpp
index 17c106f..cdb1990 100644
--- a/include/obmc_console.hpp
+++ b/include/obmc_console.hpp
@@ -45,9 +45,9 @@
doingWrite = true;
hostSocket->async_write_some(
boost::asio::buffer(inputBuffer.data(), inputBuffer.size()),
- [](boost::beast::error_code ec, std::size_t bytes_written) {
+ [](boost::beast::error_code ec, std::size_t bytesWritten) {
doingWrite = false;
- inputBuffer.erase(0, bytes_written);
+ inputBuffer.erase(0, bytesWritten);
if (ec == boost::asio::error::eof)
{
@@ -148,8 +148,7 @@
}
})
.onmessage([]([[maybe_unused]] crow::websocket::Connection& conn,
- const std::string& data,
- [[maybe_unused]] bool is_binary) {
+ const std::string& data, [[maybe_unused]] bool isBinary) {
inputBuffer += data;
doWrite();
});