mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +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
|
||||
|
||||
@@ -18,8 +18,7 @@
|
||||
#include "wpi/uv/Handle.h"
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
/**
|
||||
* Async handle.
|
||||
@@ -165,7 +164,6 @@ class Async<> final : public HandleImpl<Async<>, uv_async_t> {
|
||||
std::weak_ptr<Loop> m_loop;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_ASYNC_H_
|
||||
|
||||
@@ -20,8 +20,7 @@
|
||||
#include "wpi/uv/Handle.h"
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
template <typename T>
|
||||
class AsyncFunction;
|
||||
@@ -163,7 +162,6 @@ class AsyncFunction<R(T...)> final
|
||||
std::weak_ptr<Loop> m_loop;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_ASYNCFUNCTION_H_
|
||||
|
||||
@@ -15,8 +15,7 @@
|
||||
#include "wpi/SmallVector.h"
|
||||
#include "wpi/StringRef.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
/**
|
||||
* Data buffer. Convenience wrapper around uv_buf_t.
|
||||
@@ -159,7 +158,6 @@ class SimpleBufferPool {
|
||||
size_t m_size;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_BUFFER_H_
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
#include "wpi/Signal.h"
|
||||
#include "wpi/uv/Handle.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
|
||||
@@ -61,7 +60,6 @@ class Check final : public HandleImpl<Check, uv_check_t> {
|
||||
sig::Signal<> check;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_CHECK_H_
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
|
||||
#include <uv.h>
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
/**
|
||||
* Error code.
|
||||
@@ -42,7 +41,6 @@ class Error {
|
||||
int m_err{UV_UNKNOWN};
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_ERROR_H_
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
#include "wpi/Twine.h"
|
||||
#include "wpi/uv/Handle.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
|
||||
@@ -75,7 +74,6 @@ class FsEvent final : public HandleImpl<FsEvent, uv_fs_event_t> {
|
||||
sig::Signal<const char*, int> fsEvent;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_FSEVENT_H_
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
#include "wpi/Twine.h"
|
||||
#include "wpi/uv/Request.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
|
||||
@@ -116,7 +115,6 @@ inline void GetAddrInfo(const std::shared_ptr<Loop>& loop,
|
||||
GetAddrInfo(*loop, callback, node, service, hints);
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_GETADDRINFO_H_
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
#include "wpi/Twine.h"
|
||||
#include "wpi/uv/Request.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
|
||||
@@ -219,7 +218,6 @@ inline void GetNameInfo6(const std::shared_ptr<Loop>& loop,
|
||||
return GetNameInfo6(*loop, callback, ip, port, flags);
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_GETNAMEINFO_H_
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
#include "wpi/uv/Error.h"
|
||||
#include "wpi/uv/Loop.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
/**
|
||||
* Handle.
|
||||
@@ -292,7 +291,6 @@ class HandleImpl : public Handle {
|
||||
HandleImpl() : Handle{reinterpret_cast<uv_handle_t*>(new U)} {}
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_HANDLE_H_
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
#include "wpi/Signal.h"
|
||||
#include "wpi/uv/Handle.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
|
||||
@@ -70,7 +69,6 @@ class Idle final : public HandleImpl<Idle, uv_idle_t> {
|
||||
sig::Signal<> idle;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_IDLE_H_
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
#include "wpi/Signal.h"
|
||||
#include "wpi/uv/Error.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Handle;
|
||||
|
||||
@@ -248,7 +247,6 @@ class Loop final : public std::enable_shared_from_this<Loop> {
|
||||
std::atomic<std::thread::id> m_tid;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_LOOP_H_
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
#include "wpi/Signal.h"
|
||||
#include "wpi/uv/Stream.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class NetworkStream;
|
||||
|
||||
@@ -147,7 +146,6 @@ class NetworkStreamImpl : public NetworkStream {
|
||||
NetworkStreamImpl() : NetworkStream{reinterpret_cast<uv_stream_t*>(new U)} {}
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_NETWORKSTREAM_H_
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
#include "wpi/Twine.h"
|
||||
#include "wpi/uv/NetworkStream.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
class PipeConnectReq;
|
||||
@@ -203,7 +202,6 @@ class PipeConnectReq : public ConnectReq {
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_PIPE_H_
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
#include "wpi/Signal.h"
|
||||
#include "wpi/uv/Handle.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
|
||||
@@ -117,7 +116,6 @@ class Poll final : public HandleImpl<Poll, uv_poll_t> {
|
||||
std::unique_ptr<ReuseData> m_reuseData;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_POLL_H_
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
#include "wpi/Signal.h"
|
||||
#include "wpi/uv/Handle.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
|
||||
@@ -61,7 +60,6 @@ class Prepare final : public HandleImpl<Prepare, uv_prepare_t> {
|
||||
sig::Signal<> prepare;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_PREPARE_H_
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
#include "wpi/Twine.h"
|
||||
#include "wpi/uv/Handle.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
class Pipe;
|
||||
@@ -310,7 +309,6 @@ class Process final : public HandleImpl<Process, uv_process_t> {
|
||||
sig::Signal<int64_t, int> exited;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_PROCESS_H_
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
|
||||
#include "wpi/uv/Error.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
/**
|
||||
* Request. Requests are not moveable or copyable.
|
||||
@@ -162,7 +161,6 @@ class RequestImpl : public Request {
|
||||
U m_uv_req;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_REQUEST_H_
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
#include "wpi/Signal.h"
|
||||
#include "wpi/uv/Handle.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
|
||||
@@ -75,7 +74,6 @@ class Signal final : public HandleImpl<Signal, uv_signal_t> {
|
||||
sig::Signal<int> signal;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_SIGNAL_H_
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
#include "wpi/uv/Handle.h"
|
||||
#include "wpi/uv/Request.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Stream;
|
||||
|
||||
@@ -296,7 +295,6 @@ class StreamImpl : public Stream {
|
||||
StreamImpl() : Stream{reinterpret_cast<uv_stream_t*>(new U)} {}
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_STREAM_H_
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
#include "wpi/Twine.h"
|
||||
#include "wpi/uv/NetworkStream.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
class TcpConnectReq;
|
||||
@@ -358,7 +357,6 @@ class TcpConnectReq : public ConnectReq {
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_TCP_H_
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
#include "wpi/Signal.h"
|
||||
#include "wpi/uv/Handle.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
|
||||
@@ -130,7 +129,6 @@ class Timer final : public HandleImpl<Timer, uv_timer_t> {
|
||||
sig::Signal<> timeout;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_TIMER_H_
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
|
||||
#include "wpi/uv/Stream.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
class Tty;
|
||||
@@ -81,7 +80,6 @@ class Tty final : public StreamImpl<Tty, uv_tty_t> {
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_TTY_H_
|
||||
|
||||
@@ -16,8 +16,7 @@
|
||||
#include "wpi/uv/Handle.h"
|
||||
#include "wpi/uv/Request.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
class Udp;
|
||||
@@ -373,7 +372,6 @@ class Udp final : public HandleImpl<Udp, uv_udp_t> {
|
||||
sig::Signal<Buffer&, size_t, const sockaddr&, unsigned> received;
|
||||
};
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_UDP_H_
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
#include "wpi/Signal.h"
|
||||
#include "wpi/uv/Request.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
class Loop;
|
||||
|
||||
@@ -88,7 +87,6 @@ inline void QueueWork(const std::shared_ptr<Loop>& loop,
|
||||
QueueWork(*loop, work, afterWork);
|
||||
}
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_WORK_H_
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
|
||||
#include "wpi/Twine.h"
|
||||
|
||||
namespace wpi {
|
||||
namespace uv {
|
||||
namespace wpi::uv {
|
||||
|
||||
/**
|
||||
* Convert a binary structure containing an IPv4 address to a string.
|
||||
@@ -144,7 +143,6 @@ int NameToAddr(const Twine& ip, in_addr* addr);
|
||||
*/
|
||||
int NameToAddr(const Twine& ip, in6_addr* addr);
|
||||
|
||||
} // namespace uv
|
||||
} // namespace wpi
|
||||
} // namespace wpi::uv
|
||||
|
||||
#endif // WPIUTIL_WPI_UV_UTIL_H_
|
||||
|
||||
Reference in New Issue
Block a user