mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
clang-tidy: modernize-concat-nested-namespaces (NFC)
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
Async<>::~Async() noexcept {
|
||||
if (auto loop = m_loop.lock()) {
|
||||
@@ -31,5 +30,4 @@ std::shared_ptr<Async<>> Async<>::Create(const std::shared_ptr<Loop>& loop) {
|
||||
return h;
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
std::shared_ptr<Check> Check::Create(Loop& loop) {
|
||||
auto h = std::make_shared<Check>(private_init{});
|
||||
@@ -27,5 +26,4 @@ void Check::Start() {
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
#include "wpi/SmallString.h"
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
std::shared_ptr<FsEvent> FsEvent::Create(Loop& loop) {
|
||||
auto h = std::make_shared<FsEvent>(private_init{});
|
||||
@@ -61,5 +60,4 @@ std::string FsEvent::GetPath() {
|
||||
return std::string{};
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
#include "wpi/uv/Loop.h"
|
||||
#include "wpi/uv/util.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
GetAddrInfoReq::GetAddrInfoReq() {
|
||||
error = [this](Error err) { GetLoop().error(err); };
|
||||
@@ -50,5 +49,4 @@ void GetAddrInfo(Loop& loop, std::function<void(const addrinfo&)> callback,
|
||||
GetAddrInfo(loop, req, node, service, hints);
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
#include "wpi/uv/Loop.h"
|
||||
#include "wpi/uv/util.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
GetNameInfoReq::GetNameInfoReq() {
|
||||
error = [this](Error err) { GetLoop().error(err); };
|
||||
@@ -90,5 +89,4 @@ void GetNameInfo6(Loop& loop,
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
std::shared_ptr<Idle> Idle::Create(Loop& loop) {
|
||||
auto h = std::make_shared<Idle>(private_init{});
|
||||
@@ -27,5 +26,4 @@ void Idle::Start() {
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
|
||||
#include "wpi/SmallString.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
int NameToAddr(const Twine& ip, unsigned int port, sockaddr_in* addr) {
|
||||
SmallString<128> tmp;
|
||||
@@ -61,5 +60,4 @@ int NameToAddr(const Twine& ip, in6_addr* addr) {
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
|
||||
#include "wpi/uv/NetworkStream.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
ConnectReq::ConnectReq() {
|
||||
error = [this](Error err) { GetStream().error(err); };
|
||||
@@ -28,5 +27,4 @@ void NetworkStream::Listen(std::function<void()> callback, int backlog) {
|
||||
Listen(backlog);
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
|
||||
#include "wpi/SmallString.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
std::shared_ptr<Pipe> Pipe::Create(Loop& loop, bool ipc) {
|
||||
auto h = std::make_shared<Pipe>(private_init{});
|
||||
@@ -138,5 +137,4 @@ std::string Pipe::GetPeer() {
|
||||
return std::string{};
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
std::shared_ptr<Poll> Poll::Create(Loop& loop, int fd) {
|
||||
auto h = std::make_shared<Poll>(private_init{});
|
||||
@@ -93,5 +92,4 @@ void Poll::Start(int events) {
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
std::shared_ptr<Prepare> Prepare::Create(Loop& loop) {
|
||||
auto h = std::make_shared<Prepare>(private_init{});
|
||||
@@ -27,5 +26,4 @@ void Prepare::Start() {
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
#include "wpi/uv/Loop.h"
|
||||
#include "wpi/uv/Pipe.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
std::shared_ptr<Process> Process::SpawnArray(Loop& loop, const Twine& file,
|
||||
ArrayRef<Option> options) {
|
||||
@@ -131,5 +130,4 @@ std::shared_ptr<Process> Process::SpawnArray(Loop& loop, const Twine& file,
|
||||
return h;
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
std::shared_ptr<Signal> Signal::Create(Loop& loop) {
|
||||
auto h = std::make_shared<Signal>(private_init{});
|
||||
@@ -30,5 +29,4 @@ void Signal::Start(int signum) {
|
||||
signum);
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -23,8 +23,7 @@ class CallbackWriteReq : public WriteReq {
|
||||
};
|
||||
} // namespace
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
ShutdownReq::ShutdownReq() {
|
||||
error = [this](Error err) { GetStream().error(err); };
|
||||
@@ -107,5 +106,4 @@ int Stream::TryWrite(ArrayRef<Buffer> bufs) {
|
||||
return val;
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
|
||||
#include "wpi/uv/util.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
std::shared_ptr<Tcp> Tcp::Create(Loop& loop, unsigned int flags) {
|
||||
auto h = std::make_shared<Tcp>(private_init{});
|
||||
@@ -168,5 +167,4 @@ void Tcp::Connect6(const Twine& ip, unsigned int port,
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
std::shared_ptr<Timer> Timer::Create(Loop& loop) {
|
||||
auto h = std::make_shared<Timer>(private_init{});
|
||||
@@ -42,5 +41,4 @@ void Timer::Start(Time timeout, Time repeat) {
|
||||
timeout.count(), repeat.count());
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
std::shared_ptr<Tty> Tty::Create(Loop& loop, uv_file fd, bool readable) {
|
||||
auto h = std::make_shared<Tty>(private_init{});
|
||||
@@ -20,5 +19,4 @@ std::shared_ptr<Tty> Tty::Create(Loop& loop, uv_file fd, bool readable) {
|
||||
return h;
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -30,8 +30,7 @@ class CallbackUdpSendReq : public UdpSendReq {
|
||||
|
||||
} // namespace
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
UdpSendReq::UdpSendReq() {
|
||||
error = [this](Error err) { GetUdp().error(err); };
|
||||
@@ -182,5 +181,4 @@ void Udp::StartRecv() {
|
||||
});
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
WorkReq::WorkReq() {
|
||||
error = [this](Error err) { GetLoop().error(err); };
|
||||
@@ -48,5 +47,4 @@ void QueueWork(Loop& loop, std::function<void()> work,
|
||||
QueueWork(loop, req);
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
Reference in New Issue
Block a user