@@ -35,8 +35,7 @@ using namespace std;
3535using namespace folly ;
3636using namespace apache ::thrift::transport;
3737
38- namespace apache {
39- namespace thrift {
38+ namespace apache ::thrift {
4039
4140namespace detail {
4241
@@ -48,8 +47,7 @@ THRIFT_PLUGGABLE_FUNC_REGISTER(
4847
4948} // namespace detail
5049
51- namespace detail {
52- namespace ac {
50+ namespace detail ::ac {
5351
5452[[noreturn]] void throw_app_exn (const char * const msg) {
5553 throw TApplicationException (msg);
@@ -86,11 +84,9 @@ folly::exception_wrapper try_extract_any_exception(
8684 return {};
8785}
8886
89- } // namespace ac
90- } // namespace detail
87+ } // namespace detail::ac
9188
92- namespace detail {
93- namespace ap {
89+ namespace detail ::ap {
9490
9591template <typename ProtocolReader, typename ProtocolWriter>
9692std::unique_ptr<folly::IOBuf> helper<ProtocolReader, ProtocolWriter>::write_exn(
@@ -243,11 +239,9 @@ MessageBegin deserializeMessageBegin(
243239 }
244240 return msgBegin;
245241}
246- } // namespace ap
247- } // namespace detail
242+ } // namespace detail::ap
248243
249- namespace detail {
250- namespace si {
244+ namespace detail ::si {
251245namespace {
252246TrustedServerException createUnimplementedMethodException (
253247 std::string_view methodName) {
@@ -264,8 +258,7 @@ folly::exception_wrapper create_app_exn_unimplemented(const char* name) {
264258[[noreturn]] void throw_app_exn_unimplemented (const char * const name) {
265259 throw createUnimplementedMethodException (name);
266260}
267- } // namespace si
268- } // namespace detail
261+ } // namespace detail::si
269262
270263namespace {
271264
@@ -354,5 +347,4 @@ bool includeInRecentRequestsCount(const std::string_view methodName) {
354347
355348} // namespace util
356349
357- } // namespace thrift
358- } // namespace apache
350+ } // namespace apache::thrift
0 commit comments