@@ -35,8 +35,7 @@ using namespace std;
35
35
using namespace folly ;
36
36
using namespace apache ::thrift::transport;
37
37
38
- namespace apache {
39
- namespace thrift {
38
+ namespace apache ::thrift {
40
39
41
40
namespace detail {
42
41
@@ -48,8 +47,7 @@ THRIFT_PLUGGABLE_FUNC_REGISTER(
48
47
49
48
} // namespace detail
50
49
51
- namespace detail {
52
- namespace ac {
50
+ namespace detail ::ac {
53
51
54
52
[[noreturn]] void throw_app_exn (const char * const msg) {
55
53
throw TApplicationException (msg);
@@ -86,11 +84,9 @@ folly::exception_wrapper try_extract_any_exception(
86
84
return {};
87
85
}
88
86
89
- } // namespace ac
90
- } // namespace detail
87
+ } // namespace detail::ac
91
88
92
- namespace detail {
93
- namespace ap {
89
+ namespace detail ::ap {
94
90
95
91
template <typename ProtocolReader, typename ProtocolWriter>
96
92
std::unique_ptr<folly::IOBuf> helper<ProtocolReader, ProtocolWriter>::write_exn(
@@ -243,11 +239,9 @@ MessageBegin deserializeMessageBegin(
243
239
}
244
240
return msgBegin;
245
241
}
246
- } // namespace ap
247
- } // namespace detail
242
+ } // namespace detail::ap
248
243
249
- namespace detail {
250
- namespace si {
244
+ namespace detail ::si {
251
245
namespace {
252
246
TrustedServerException createUnimplementedMethodException (
253
247
std::string_view methodName) {
@@ -264,8 +258,7 @@ folly::exception_wrapper create_app_exn_unimplemented(const char* name) {
264
258
[[noreturn]] void throw_app_exn_unimplemented (const char * const name) {
265
259
throw createUnimplementedMethodException (name);
266
260
}
267
- } // namespace si
268
- } // namespace detail
261
+ } // namespace detail::si
269
262
270
263
namespace {
271
264
@@ -354,5 +347,4 @@ bool includeInRecentRequestsCount(const std::string_view methodName) {
354
347
355
348
} // namespace util
356
349
357
- } // namespace thrift
358
- } // namespace apache
350
+ } // namespace apache::thrift
0 commit comments