From 145b1115b94e665e5dbc5c0925e960abc708e390 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Mon, 6 Nov 2023 08:02:11 -0800 Subject: [PATCH] Namespace doesn't need to be followed by semicolon Summary: Auto-generated with ``` fbgs "}; // namespace" -l | sort | uniq | sed 's/fbsource.//' | xargs -n 50 sed -i 's_}; // namespace_} // namespace_' ``` Reviewed By: dmm-fb Differential Revision: D51029740 fbshipit-source-id: 177e3f6e6b0ab7e986b1147952cd5e2f59d4b1fc --- proxygen/httpclient/samples/H3Datagram/H3DatagramClient.cpp | 2 +- proxygen/httpserver/samples/hq/FizzContext.cpp | 2 +- proxygen/lib/http/session/HQStreamBase.cpp | 2 +- proxygen/lib/http/session/test/MockQuicSocketDriver.h | 2 +- proxygen/lib/transport/test/H3DatagramAsyncSocketTest.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/proxygen/httpclient/samples/H3Datagram/H3DatagramClient.cpp b/proxygen/httpclient/samples/H3Datagram/H3DatagramClient.cpp index 979794d48b..9f3a012a04 100644 --- a/proxygen/httpclient/samples/H3Datagram/H3DatagramClient.cpp +++ b/proxygen/httpclient/samples/H3Datagram/H3DatagramClient.cpp @@ -143,7 +143,7 @@ class DatagramClient std::array buf_; bool closing_{false}; }; -}; // namespace +} // namespace int main(int argc, char* argv[]) { #if FOLLY_HAVE_LIBGFLAGS diff --git a/proxygen/httpserver/samples/hq/FizzContext.cpp b/proxygen/httpserver/samples/hq/FizzContext.cpp index 2eac49e864..79404d9174 100644 --- a/proxygen/httpserver/samples/hq/FizzContext.cpp +++ b/proxygen/httpserver/samples/hq/FizzContext.cpp @@ -138,7 +138,7 @@ MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQg/NeWSkmQEmaO2f0T VnFqMCnjdeFhc/LA6rx3ALn2jfDj9jQR0QGRouFA7NbYZFx7Uj3HOw0/ -----END PRIVATE KEY----- )"; -}; // namespace +} // namespace namespace quic::samples { FizzServerContextPtr createFizzServerContext(const HQServerParams& params) { diff --git a/proxygen/lib/http/session/HQStreamBase.cpp b/proxygen/lib/http/session/HQStreamBase.cpp index 1c78a08b11..bd95057da3 100644 --- a/proxygen/lib/http/session/HQStreamBase.cpp +++ b/proxygen/lib/http/session/HQStreamBase.cpp @@ -103,4 +103,4 @@ size_t HQStreamBase::generateStreamPreface() { CHECK(!res.hasError()); return res.value(); } -}; // namespace proxygen +} // namespace proxygen diff --git a/proxygen/lib/http/session/test/MockQuicSocketDriver.h b/proxygen/lib/http/session/test/MockQuicSocketDriver.h index e9acc41e2d..3228d2c644 100644 --- a/proxygen/lib/http/session/test/MockQuicSocketDriver.h +++ b/proxygen/lib/http/session/test/MockQuicSocketDriver.h @@ -1778,6 +1778,6 @@ class MockQuicSocketDriver : public folly::EventBase::LoopCallback { folly::SocketAddress peerAddress_; std::shared_ptr mockCertificate{ std::make_shared()}; -}; // namespace quic +} // namespace quic } // namespace quic diff --git a/proxygen/lib/transport/test/H3DatagramAsyncSocketTest.h b/proxygen/lib/transport/test/H3DatagramAsyncSocketTest.h index 47e1825bb0..263d5200bb 100644 --- a/proxygen/lib/transport/test/H3DatagramAsyncSocketTest.h +++ b/proxygen/lib/transport/test/H3DatagramAsyncSocketTest.h @@ -91,4 +91,4 @@ class H3DatagramAsyncSocketTest : public testing::Test { proxygen::H3DatagramAsyncSocket::Options options_; char buf_[kMaxDatagramSize]; }; -}; // namespace proxygen +} // namespace proxygen