clang-tidy: modernize-concat-nested-namespaces (NFC)

This commit is contained in:
Peter Johnson
2020-12-28 01:19:59 -08:00
parent 67e03e625d
commit 6131f4e32b
162 changed files with 324 additions and 656 deletions

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_

View File

@@ -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_