Skip to content

Commit

Permalink
style: clang-tidy auto fixes (#1847)
Browse files Browse the repository at this point in the history
Fixes #1846. Please review and commit clang-tidy fixes.

Co-authored-by: kuznetsss <[email protected]>
  • Loading branch information
github-actions[bot] and kuznetsss authored Jan 23, 2025
1 parent 9570286 commit 35b9a06
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/app/ClioApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
#include "web/ng/Server.hpp"

#include <boost/asio/io_context.hpp>
#include <boost/asio/spawn.hpp>
#include <boost/asio/use_future.hpp>

#include <cstdint>
#include <cstdlib>
Expand Down
1 change: 0 additions & 1 deletion src/etl/impl/SubscriptionSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <boost/asio/io_context.hpp>
#include <boost/asio/spawn.hpp>
#include <boost/asio/strand.hpp>
#include <boost/asio/use_future.hpp>
#include <boost/beast/http/field.hpp>
#include <boost/json/object.hpp>
#include <boost/json/parse.hpp>
Expand Down
1 change: 0 additions & 1 deletion src/web/ng/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
#include <boost/beast/core/error.hpp>
#include <boost/beast/core/flat_buffer.hpp>
#include <boost/beast/core/tcp_stream.hpp>
#include <boost/beast/http/status.hpp>
#include <boost/system/system_error.hpp>
#include <fmt/core.h>

Expand Down
3 changes: 1 addition & 2 deletions src/web/ng/impl/ConnectionHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
#include <boost/asio/error.hpp>
#include <boost/asio/spawn.hpp>
#include <boost/asio/ssl/error.hpp>
#include <boost/asio/steady_timer.hpp>
#include <boost/beast/core/error.hpp>
#include <boost/beast/http/error.hpp>
#include <boost/beast/http/status.hpp>
Expand Down Expand Up @@ -213,7 +212,7 @@ ConnectionHandler::processConnection(ConnectionPtr connectionPtr, boost::asio::y
void
ConnectionHandler::stopConnection(Connection& connection, boost::asio::yield_context yield)
{
util::Logger log{"WebServer"};
util::Logger const log{"WebServer"};
LOG(log.trace()) << connection.tag() << "Stopping connection";
Response response{
boost::beast::http::status::service_unavailable,
Expand Down
1 change: 0 additions & 1 deletion tests/unit/etl/SubscriptionSourceTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "util/TestWsServer.hpp"
#include "util/prometheus/Gauge.hpp"

#include <boost/asio/io_context.hpp>
#include <boost/asio/spawn.hpp>
#include <boost/json/object.hpp>
#include <boost/json/serialize.hpp>
Expand Down
1 change: 0 additions & 1 deletion tests/unit/util/StopHelperTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include <boost/asio/spawn.hpp>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <sys/socket.h>

using namespace util;

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/web/ng/impl/WsConnectionTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ TEST_F(WebWsConnectionTests, CloseCalledFromMultipleSubCoroutines)
runSpawnWithTimeout(std::chrono::seconds{1}, [&](boost::asio::yield_context yield) {
auto wsConnection = acceptConnection(yield);
util::CoroutineGroup coroutines{yield};
for ([[maybe_unused]] int i : std::ranges::iota_view{0, 2}) {
for ([[maybe_unused]] int const i : std::ranges::iota_view{0, 2}) {
coroutines.spawn(yield, [&wsConnection, &closeCalled](boost::asio::yield_context innerYield) {
wsConnection->close(innerYield);
closeCalled.Call();
Expand Down

0 comments on commit 35b9a06

Please sign in to comment.