Consistency in namespace-closing comments v2017.07.31.00
authorYedidya Feldblum <yfeldblum@fb.com>
Mon, 31 Jul 2017 06:14:36 +0000 (23:14 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 31 Jul 2017 06:20:34 +0000 (23:20 -0700)
Summary: [Folly] Consistency in namespace-closing comments.

Reviewed By: Orvid

Differential Revision: D5524744

fbshipit-source-id: ced4dd2398ed6baa3ad5b68b74eee6a5d6b2b103

265 files changed:
folly/Arena-inl.h
folly/Arena.h
folly/Assume.h
folly/AtomicBitSet.h
folly/AtomicHashArray.h
folly/Benchmark.h
folly/Bits.h
folly/Checksum.cpp
folly/Checksum.h
folly/Conv.cpp
folly/Conv.h
folly/CpuId.h
folly/Demangle.cpp
folly/DiscriminatedPtr.h
folly/EvictingCacheMap.h
folly/Exception.h
folly/ExceptionWrapper.cpp
folly/ExceptionWrapper.h
folly/Executor.h
folly/FBString.h
folly/FBVector.h
folly/File.cpp
folly/File.h
folly/FileUtil.cpp
folly/FileUtil.h
folly/Fingerprint.h
folly/Format.cpp
folly/Format.h
folly/FormatArg.h
folly/GroupVarint.cpp
folly/GroupVarint.h
folly/IPAddress.cpp
folly/IPAddress.h
folly/IPAddressException.h
folly/IPAddressV4.cpp
folly/IPAddressV4.h
folly/IPAddressV6.cpp
folly/IPAddressV6.h
folly/IntrusiveList.h
folly/Iterator.h
folly/LockTraits.h
folly/LockTraitsBoost.h
folly/MPMCPipeline.h
folly/MacAddress.cpp
folly/MacAddress.h
folly/MallctlHelper.cpp
folly/MallctlHelper.h
folly/Malloc.h
folly/MapUtil.h
folly/Memory.h
folly/MemoryMapping.cpp
folly/MemoryMapping.h
folly/Overload.h
folly/Padded.h
folly/Portability.h
folly/RWSpinLock.h
folly/Random-inl.h
folly/SafeAssert.cpp
folly/ScopeGuard.h
folly/Shell.cpp
folly/Shell.h
folly/SocketAddress.cpp
folly/String-inl.h
folly/String.cpp
folly/Subprocess.cpp
folly/Subprocess.h
folly/Synchronized.h
folly/ThreadCachedArena.cpp
folly/ThreadCachedArena.h
folly/ThreadLocal.h
folly/TimeoutQueue.cpp
folly/TimeoutQueue.h
folly/Traits.h
folly/Try-inl.h
folly/Try.h
folly/UncaughtExceptions.h
folly/Uri.cpp
folly/Uri.h
folly/Varint.h
folly/build/GenerateFingerprintTables.cpp
folly/build/generate_varint_tables.py
folly/concurrency/detail/ConcurrentHashMap-detail.h
folly/detail/BitIteratorDetail.h
folly/detail/DiscriminatedPtrDetail.h
folly/detail/FingerprintPolynomial.h
folly/detail/Futex.cpp
folly/detail/GroupVarintDetail.h
folly/detail/SlowFingerprint.h
folly/detail/ThreadLocalDetail.h
folly/dynamic-inl.h
folly/experimental/Bits.h
folly/experimental/DynamicParser-inl.h
folly/experimental/DynamicParser.cpp
folly/experimental/DynamicParser.h
folly/experimental/EliasFanoCoding.h
folly/experimental/EventCount.h
folly/experimental/FlatCombiningPriorityQueue.h
folly/experimental/FunctionScheduler.cpp
folly/experimental/FutureDAG.h
folly/experimental/Instructions.h
folly/experimental/JemallocNodumpAllocator.cpp
folly/experimental/JemallocNodumpAllocator.h
folly/experimental/NestedCommandLineApp.cpp
folly/experimental/NestedCommandLineApp.h
folly/experimental/ProgramOptions.cpp
folly/experimental/ProgramOptions.h
folly/experimental/StringKeyedCommon.h
folly/experimental/StringKeyedMap.h
folly/experimental/StringKeyedSet.h
folly/experimental/StringKeyedUnorderedMap.h
folly/experimental/StringKeyedUnorderedSet.h
folly/experimental/TestUtil.cpp
folly/experimental/TestUtil.h
folly/experimental/TupleOps.h
folly/experimental/exception_tracer/ExceptionAbi.h
folly/experimental/exception_tracer/ExceptionTracer.cpp
folly/experimental/exception_tracer/ExceptionTracer.h
folly/experimental/exception_tracer/ExceptionTracerLib.cpp
folly/experimental/flat_combining/FlatCombining.h
folly/experimental/flat_combining/test/FlatCombiningExamples.h
folly/experimental/flat_combining/test/FlatCombiningTestHelpers.h
folly/experimental/hazptr/bench/HazptrBench.h
folly/experimental/hazptr/example/LockFreeLIFO.h
folly/experimental/hazptr/example/MWMRSet.h
folly/experimental/hazptr/example/SWMRList.h
folly/experimental/hazptr/example/WideCAS.h
folly/experimental/hazptr/memory_resource.h
folly/experimental/hazptr/test/HazptrUse1.h
folly/experimental/hazptr/test/HazptrUse2.h
folly/experimental/io/AsyncIO.cpp
folly/experimental/io/test/AsyncIOTest.cpp
folly/experimental/logging/test/GlogFormatterTest.cpp
folly/experimental/logging/xlog.cpp
folly/experimental/symbolizer/Symbolizer.cpp
folly/experimental/test/BitsTest.cpp
folly/experimental/test/EliasFanoCodingTest.cpp
folly/experimental/test/EventCountTest.cpp
folly/experimental/test/FunctionSchedulerTest.cpp
folly/experimental/test/NestedCommandLineAppExample.cpp
folly/experimental/test/NestedCommandLineAppTest.cpp
folly/experimental/test/NestedCommandLineAppTestHelper.cpp
folly/experimental/test/ProgramOptionsTest.cpp
folly/experimental/test/ProgramOptionsTestHelper.cpp
folly/fibers/AtomicBatchDispatcher-inl.h
folly/fibers/BoostContextCompatibility.h
folly/fibers/EventBaseLoopController-inl.h
folly/fibers/EventBaseLoopController.h
folly/fibers/Fiber-inl.h
folly/fibers/Fiber.cpp
folly/fibers/FiberManagerInternal-inl.h
folly/fibers/ForEach-inl.h
folly/fibers/ForEach.h
folly/fibers/GuardPageAllocator.cpp
folly/fibers/GuardPageAllocator.h
folly/fibers/LoopController.h
folly/fibers/SimpleLoopController.h
folly/fibers/test/FibersTest.cpp
folly/fibers/traits.h
folly/futures/DrivableExecutor.h
folly/futures/Future.h
folly/futures/ManualExecutor.cpp
folly/futures/QueuedImmediateExecutor.h
folly/futures/ThreadWheelTimekeeper.cpp
folly/futures/ThreadWheelTimekeeper.h
folly/futures/test/Benchmark.cpp
folly/futures/test/TestExecutor.cpp
folly/futures/test/TestExecutor.h
folly/gen/Base-inl.h
folly/gen/Base.h
folly/gen/Core-inl.h
folly/gen/Core.h
folly/hash/SpookyHashV1.cpp
folly/hash/SpookyHashV1.h
folly/hash/SpookyHashV2.cpp
folly/hash/SpookyHashV2.h
folly/init/Init.h
folly/io/IOBuf.cpp
folly/io/IOBuf.h
folly/io/IOBufQueue.cpp
folly/io/IOBufQueue.h
folly/io/async/AsyncPipe.cpp
folly/io/async/AsyncPipe.h
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncServerSocket.cpp
folly/io/async/AsyncServerSocket.h
folly/io/async/AsyncSignalHandler.cpp
folly/io/async/AsyncSignalHandler.h
folly/io/async/AsyncSocket.cpp
folly/io/async/AsyncSocket.h
folly/io/async/AsyncSocketException.h
folly/io/async/AsyncTimeout.cpp
folly/io/async/AsyncTimeout.h
folly/io/async/AsyncTransport.h
folly/io/async/AsyncUDPServerSocket.h
folly/io/async/AsyncUDPSocket.cpp
folly/io/async/AsyncUDPSocket.h
folly/io/async/DelayedDestruction.h
folly/io/async/DelayedDestructionBase.h
folly/io/async/EventBase.cpp
folly/io/async/EventBase.h
folly/io/async/EventBaseManager.cpp
folly/io/async/EventBaseManager.h
folly/io/async/EventHandler.cpp
folly/io/async/EventHandler.h
folly/io/async/EventUtil.h
folly/io/async/HHWheelTimer.cpp
folly/io/async/HHWheelTimer.h
folly/io/async/NotificationQueue.h
folly/io/async/SSLContext.cpp
folly/io/async/SSLContext.h
folly/io/async/SSLOptions.cpp
folly/io/async/SSLOptions.h
folly/io/async/TimeoutManager.h
folly/io/async/ssl/OpenSSLUtils.cpp
folly/io/async/ssl/OpenSSLUtils.h
folly/io/async/ssl/TLSDefinitions.h
folly/io/async/test/AsyncPipeTest.cpp
folly/io/async/test/AsyncSSLSocketTest.cpp
folly/io/async/test/AsyncSSLSocketTest2.cpp
folly/io/async/test/AsyncTimeoutTest.cpp
folly/io/async/test/SSLContextInitializationTest.cpp
folly/memory/UninitializedMemoryHacks.h
folly/python/NotificationQueueExecutor.h
folly/python/futures.h
folly/small_vector.h
folly/ssl/Init.cpp
folly/ssl/Init.h
folly/ssl/OpenSSLCertUtils.cpp
folly/ssl/OpenSSLLockTypes.h
folly/ssl/detail/OpenSSLThreading.cpp
folly/stats/BucketedTimeSeries-defs.h
folly/stats/BucketedTimeSeries.h
folly/stats/Histogram-defs.h
folly/stats/Histogram.cpp
folly/stats/Histogram.h
folly/stats/MultiLevelTimeSeries.h
folly/test/BatonTestHelpers.h
folly/test/BitIteratorTest.cpp
folly/test/BitsTest.cpp
folly/test/ConcurrentSkipListTest.cpp
folly/test/DemangleTest.cpp
folly/test/DeterministicSchedule.h
folly/test/DeterministicScheduleTest.cpp
folly/test/ExceptionWrapperTest.cpp
folly/test/FBStringTest.cpp
folly/test/FileTest.cpp
folly/test/FileUtilTest.cpp
folly/test/FingerprintBenchmark.cpp
folly/test/FormatOtherTest.cpp
folly/test/FormatTest.cpp
folly/test/GroupVarintTest.cpp
folly/test/HashTest.cpp
folly/test/MemoryMappingTest.cpp
folly/test/OverloadTest.cpp
folly/test/RangeFindBenchmark.cpp
folly/test/ReplaceableTest.cpp
folly/test/SingletonTest.cpp
folly/test/SpinLockTest.cpp
folly/test/StringTest.cpp
folly/test/SubprocessTest.cpp
folly/test/SubprocessTestParentDeathHelper.cpp
folly/test/ThreadCachedArenaTest.cpp
folly/test/ThreadLocalTest.cpp
folly/test/TokenBucketTest.h
folly/test/VarintTest.cpp

index 805e8616acc190ccb41bcabfce03359304c93cab..58059c9f29007d634ec8d4d8ad2c1363f8126e6f 100644 (file)
@@ -90,4 +90,4 @@ Arena<Alloc>::~Arena() {
   }
 }
 
-}  // namespace folly
+} // namespace folly
index cf010f3d4375d9f9c3700f010d8111f5f06ed300..25279a7bb9000a26b1433c373b9918367b7a99a5 100644 (file)
@@ -241,6 +241,6 @@ class SysArena : public Arena<SysAlloc> {
 template <>
 struct IsArenaAllocator<SysArena> : std::true_type { };
 
-}  // namespace folly
+} // namespace folly
 
 #include <folly/Arena-inl.h>
index f905dce7ca7528f6a7ae3bb374ab7eb7780b34f9..47f4e9ab2b5d4912b4e70455047b1dd494520223 100644 (file)
@@ -68,4 +68,4 @@ FOLLY_ALWAYS_INLINE void assume(bool cond) {
 #endif
 }
 
-}  // namespace folly
+} // namespace folly
index c03205278d59b3cb01b81b6d2e831b4bc8e709c5..00af899882d680c2174fa75ea7bd91890dea941c 100644 (file)
@@ -156,4 +156,4 @@ inline bool AtomicBitSet<N>::operator[](size_t idx) const {
   return test(idx);
 }
 
-}  // namespaces
+} // namespace folly
index 897bf8a84c82def72a2ad5471a5bb88afb2357f8..16b8dad0c97dd0b48fe5110ea7b3c7dd78b5a5f0 100644 (file)
@@ -80,7 +80,7 @@ inline void checkLegalKeyIfKeyTImpl(KeyT key_in, KeyT emptyKey,
   DCHECK_NE(key_in, lockedKey);
   DCHECK_NE(key_in, erasedKey);
 }
-}  // namespace detail
+} // namespace detail
 
 template <
     class KeyT,
index cf11ca75b20b02ca67da3dfbaa4fdf198d3b14de..01e8ffee4948a2065af44d25c782b845d24b8cbc 100644 (file)
@@ -237,7 +237,7 @@ struct DoNotOptimizeAwayNeedsIndirect {
   constexpr static bool value = !folly::IsTriviallyCopyable<Decayed>::value ||
       sizeof(Decayed) > sizeof(long) || std::is_pointer<Decayed>::value;
 };
-} // detail namespace
+} // namespace detail
 
 template <typename T>
 auto doNotOptimizeAway(const T& datum) -> typename std::enable_if<
index 940b7bf05c4dd996455cb7c556810b730c05953c..63eaa4a1e9dd2de79080e71209f4554ef74367cd 100644 (file)
@@ -282,7 +282,7 @@ struct EndianInt {
   }
 };
 
-}  // namespace detail
+} // namespace detail
 
 // big* convert between native and big-endian representations
 // little* convert between native and little-endian representations
@@ -550,4 +550,4 @@ inline void storeUnaligned(void* p, T value) {
   }
 }
 
-}  // namespace folly
+} // namespace folly
index 1b784f3f97f3af365ca456f696e7fc75e84de0f0..5fc17c08574d5f1ca03751bbf18c184e4a123501 100644 (file)
@@ -121,7 +121,7 @@ crc32_sw(const uint8_t* data, size_t nbytes, uint32_t startingChecksum) {
   return crc_sw<CRC32_POLYNOMIAL>(data, nbytes, startingChecksum);
 }
 
-} // folly::detail
+} // namespace detail
 
 uint32_t crc32c(const uint8_t *data, size_t nbytes,
     uint32_t startingChecksum) {
@@ -145,4 +145,4 @@ crc32_type(const uint8_t* data, size_t nbytes, uint32_t startingChecksum) {
   return ~crc32(data, nbytes, startingChecksum);
 }
 
-} // folly
+} // namespace folly
index 756d3730659ffe532909798313c70191d3af8098..a47a6804066912d5c1b733a491779ac09bdfec8c 100644 (file)
@@ -57,4 +57,4 @@ crc32(const uint8_t* data, size_t nbytes, uint32_t startingChecksum = ~0U);
 uint32_t
 crc32_type(const uint8_t* data, size_t nbytes, uint32_t startingChecksum = ~0U);
 
-} // folly
+} // namespace folly
index 6af0f90fbecd51754c6dcf9b05a82ca2d1d9aa4a..8e2f575293475d07485302ee28a2a8b12ba7c952 100644 (file)
@@ -255,7 +255,7 @@ inline bool bool_str_cmp(const char** b, size_t len, const char* value) {
   return true;
 }
 
-} // anonymous namespace
+} // namespace
 
 Expected<bool, ConversionCode> str_to_bool(StringPiece* src) noexcept {
   auto b = src->begin(), e = src->end();
index d70b1d5bc2427f39f2357b04a00055c6380cc0a7..be0d3d0dafa994695cc64ac43943a0a3e60a064d 100644 (file)
@@ -656,7 +656,7 @@ estimateSpaceNeeded(Src value) {
 namespace detail {
 constexpr int kConvMaxDecimalInShortestLow = -6;
 constexpr int kConvMaxDecimalInShortestHigh = 21;
-} // folly::detail
+} // namespace detail
 
 /** Wrapper around DoubleToStringConverter **/
 template <class Tgt, class Src>
@@ -830,8 +830,7 @@ toAppendDelimStrImpl(const Delimiter& delim, const T& v, const Ts&... vs) {
   toAppend(delim, detail::getLastElement(vs...));
   toAppendDelimStrImpl(delim, vs...);
 }
-} // folly::detail
-
+} // namespace detail
 
 /**
  * Variadic conversion to string. Appends each element in turn.
index bcbea19714320248094c52b60d585fc608dfea79..015e56a7841f484265e427546765660fa870563a 100644 (file)
@@ -214,4 +214,4 @@ class CpuId {
   uint32_t f7c_ = 0;
 };
 
-}  // namespace folly
+} // namespace folly
index 14eb1ad7dbac62fe6726c3e3c9fec650a85a2f40..1256469371fad1818ab7a3d5bc39804510da85d2 100644 (file)
@@ -102,7 +102,7 @@ void demangleCallback(const char* str, size_t size, void* p) {
   buf->total += size;
 }
 
-}  // namespace
+} // namespace
 
 size_t demangle(const char* name, char* out, size_t outSize) {
 #ifdef FOLLY_DEMANGLE_MAX_SYMBOL_SIZE
@@ -159,4 +159,4 @@ size_t strlcpy(char* dest, const char* const src, size_t size) {
   return len;
 }
 
-} // folly
+} // namespace folly
index 0195beac7f846646e5d40856e5e85f04f17c0810..b773bec8ce2ca4cb96bd006f47987a9d956c2aeb 100644 (file)
@@ -238,4 +238,4 @@ decltype(auto) apply_visitor(
   return variant.apply(std::forward<Visitor>(visitor));
 }
 
-}  // namespace folly
+} // namespace folly
index d94fac022e88eafd8e27972d5143a99815fee028..e7e8149d7eae056df0b84d0b82c1509072050b0d 100644 (file)
@@ -495,4 +495,4 @@ class EvictingCacheMap {
   std::size_t clearSize_;
 };
 
-} // folly
+} // namespace folly
index 4a05535b3f5d828081981f98c5b42ca018c04c57..379f269bd45983cc8c8056226face91d59dd42ad 100644 (file)
@@ -114,4 +114,4 @@ void checkFopenErrorExplicit(FILE* fp, int savedErrno, Args&&... args) {
     }                                  \
   } while (0)
 
-}  // namespace folly
+} // namespace folly
index 205b0d78d71242c6f31e817de343fc09fab03a46..6d14f0ad31bb5b3b9d4f30bfcd2fcb61b802cd01 100644 (file)
@@ -88,4 +88,4 @@ fbstring exceptionStr(exception_wrapper const& ew) {
   return ew.what();
 }
 
-} // folly
+} // namespace folly
index 5f1d65a2cfa5cee6881a9ee7b62f39527fb52ac5..489d158a9c3b214de9020066e04b98f3a06b6a9f 100644 (file)
@@ -643,7 +643,7 @@ inline exception_wrapper try_and_catch_(F&& f) {
     return exception_wrapper(std::current_exception(), ex);
   }
 }
-} // detail
+} // namespace detail
 
 //! `try_and_catch` is a simple replacement for `try {} catch(){}`` that allows
 //! you to specify which derived exceptions you would like to catch and store in
@@ -684,7 +684,7 @@ template <typename... Exceptions, typename F>
 exception_wrapper try_and_catch(F&& fn) {
   return detail::try_and_catch_<F, Exceptions...>(std::forward<F>(fn));
 }
-} // folly
+} // namespace folly
 
 #include <folly/ExceptionWrapper-inl.h>
 
index b4f10779eb502e4eaba53ac12965fe28c4ad3095..24ca6c2b65db96d1f5034a878c36274d13a61803 100644 (file)
@@ -98,4 +98,4 @@ class Executor {
   }
 };
 
-} // folly
+} // namespace folly
index e2579b72aa0a82d4fdcf006e23ac68ee479f10d8..90728601fbc7b1cd06dbcb375d1f6470db2444d6 100644 (file)
@@ -2879,7 +2879,7 @@ namespace std {
 
 FOLLY_FBSTRING_HASH
 
-}  // namespace std
+} // namespace std
 
 #undef FOLLY_FBSTRING_HASH
 #undef FOLLY_FBSTRING_HASH1
index 0acac2347331265dae1a35d8919f2bb5ac5c41ae..21253afe474b2ef86b1d86e628f6b846cb29d0f0 100644 (file)
@@ -1624,7 +1624,7 @@ struct IndexableTraits<fbvector<T, A>>
   : public IndexableTraitsSeq<fbvector<T, A>> {
 };
 
-}  // namespace detail
+} // namespace detail
 
 template <class T, class A>
 void compactResize(fbvector<T, A>* v, size_t sz) {
index be44ce572925cb614a26d54c2b86fe86f5566e4a..74d8669ef1fc29852e935764609fb56877b9ff4e 100644 (file)
@@ -148,4 +148,4 @@ void File::unlock() {
 }
 void File::unlock_shared() { unlock(); }
 
-}  // namespace folly
+} // namespace folly
index af6620960b6e3bb36e354a6f4417a9392f9ca25d..8d668d8bc7934949aa24a854362ea94e324f4404 100644 (file)
@@ -150,5 +150,4 @@ class File {
 
 void swap(File& a, File& b);
 
-
-}  // namespace folly
+} // namespace folly
index 0499d34dbc04b2ddfaa74d0217b6dcbcbea578d8..ce61ad963193d32a35a33dad592d436354454df8 100644 (file)
@@ -235,4 +235,4 @@ void writeFileAtomic(
   writeFileAtomic(filename, ByteRange(data), permissions);
 }
 
-}  // namespaces
+} // namespace folly
index c27e249af4e2727d5a1c20b093ed1aee09c8393d..92598093a836a0df1f5535f2809765722da10352 100644 (file)
@@ -252,4 +252,4 @@ int writeFileAtomicNoThrow(
     int count,
     mode_t permissions = 0644);
 
-}  // namespaces
+} // namespace folly
index 74302093b5a58e42bc0d99e37d11426376289566..558cfd597bccdaefac89ae376401bbcd017f85ec 100644 (file)
@@ -284,4 +284,4 @@ inline uint64_t Fingerprint<128>::shlor64(uint64_t v) {
   return out;
 }
 
-}  // namespace folly
+} // namespace folly
index 25ddf6312bdd8f8462c0a2b6f45ba6a386a1d660..9a711e4601e8a47c6872580f7733f0f1100d9c8d 100644 (file)
@@ -27,7 +27,7 @@ namespace detail {
 extern const FormatArg::Align formatAlignTable[];
 extern const FormatArg::Sign formatSignTable[];
 
-}  // namespace detail
+} // namespace detail
 
 using namespace folly::detail;
 
@@ -328,6 +328,6 @@ void insertThousandsGroupingUnsafe(char* start_buffer, char** end_buffer) {
     remaining_digits -= current_group_size;
   }
 }
-} // detail
+} // namespace detail
 
-}  // namespace folly
+} // namespace folly
index d6fd2ff0c3a038d69da6783415aeda89f355b328..6ed3c6f1cfba858a65120c353a56764e805c79a1 100644 (file)
@@ -432,7 +432,7 @@ struct IsFormatter<
     typename std::enable_if<
         std::is_same<typename T::IsFormatter, detail::FormatterTag>::value>::
         type> : public std::true_type {};
-} // folly::detail
+} // namespace detail
 
 // Deprecated API. formatChecked() et. al. now behave identically to their
 // non-Checked counterparts.
index d3ee03aa142d0723b7ab93f92ecef0c525adce54..a6d4fb63865eb3b7cd0cf0faec1641274f0b10f8 100644 (file)
@@ -275,4 +275,4 @@ inline int FormatArg::splitIntKey() {
   }
 }
 
-}  // namespace folly
+} // namespace folly
index cc5740ff20ebf78781a0709e74380437e91b91cc..63648e85eb0dd40e74202fb6d6469c80bd896fad 100644 (file)
@@ -29,5 +29,5 @@ const uint64_t GroupVarint64::kMask[] = {
   0xffffffffffffffffULL
 };
 
-}  // namespace folly
+} // namespace folly
 #endif
index 8a101d51ec5b889038e939bf1f9218b88482522f..8780f04e4088ebfd09c91485d423fc8a75ee4a50 100644 (file)
 namespace folly {
 namespace detail {
 alignas(16) extern const uint64_t groupVarintSSEMasks[];
-}  // namespace detail
-}  // namespace folly
+} // namespace detail
+} // namespace folly
 #endif
 
 namespace folly {
 namespace detail {
 extern const uint8_t groupVarintLengths[];
-}  // namespace detail
-}  // namespace folly
+} // namespace detail
+} // namespace folly
 
 namespace folly {
 
@@ -625,6 +625,6 @@ class GroupVarintDecoder {
 typedef GroupVarintDecoder<uint32_t> GroupVarint32Decoder;
 typedef GroupVarintDecoder<uint64_t> GroupVarint64Decoder;
 
-}  // namespace folly
+} // namespace folly
 
 #endif /* FOLLY_X64 || defined(__i386__) || FOLLY_PPC64 */
index 792b75a4afac5a1da4b6c39580f4185e0bf517fb..75c2ff3d50e6cd7563abdca611ff583da4a53114 100644 (file)
@@ -434,5 +434,4 @@ IPAddress::longestCommonPrefix(const CIDRNetwork& one, const CIDRNetwork& two) {
       "Can't convert address with family ", fam, " to AF_INET6 address"));
 }
 
-
-}  // folly
+} // namespace folly
index 372d9cbc5a19c418e53e7ff178c79549c7ca5174..4ce7d3887594ac34aff5b624758e468c8b486743 100644 (file)
@@ -457,7 +457,7 @@ inline bool operator>=(const IPAddress& a, const IPAddress& b) {
   return !(a < b);
 }
 
-}  // folly
+} // namespace folly
 
 namespace std {
 template <>
@@ -466,4 +466,4 @@ struct hash<folly::IPAddress> {
     return addr.hash();
   }
 };
-}  // std
+} // namespace std
index 86f8a5ac8dc59dfa8887a82c1aea1c9ba7f03c66..82d5d0440badcea991ee776b06860ffaf240c6a5 100644 (file)
@@ -62,4 +62,4 @@ class InvalidAddressFamilyException : public IPAddressFormatException {
       default;
 };
 
-}  // folly
+} // namespace folly
index bcd582df89280ea5dd9d09298a36359561e8a60a..645d5d2933b9ffe9ac8e5fa729eeca909a79a356 100644 (file)
@@ -287,4 +287,4 @@ CIDRNetworkV4 IPAddressV4::longestCommonPrefix(
   return {IPAddressV4(prefix.first), prefix.second};
 }
 
-} // folly
+} // namespace folly
index b6390f8c423621ffcb6086264ba64bd2c6eec06f..626c974f33841574cedf243b425a9a59ba045a45 100644 (file)
@@ -308,7 +308,7 @@ inline bool operator>=(const IPAddressV4& a, const IPAddressV4& b) {
   return !(a < b);
 }
 
-}  // folly
+} // namespace folly
 
 namespace std {
 template <>
@@ -317,4 +317,4 @@ struct hash<folly::IPAddressV4> {
     return addr.hash();
   }
 };
-}  // std
+} // namespace std
index cff206f3cc1d7b0a891af2708985229a0a1401de..e40a08e5d17e317f43fb6a6056569da41b1511a1 100644 (file)
@@ -514,4 +514,4 @@ bool IPAddressV6::inBinarySubnet(const std::array<uint8_t, 2> addr,
   auto masked = mask(numBits);
   return (std::memcmp(addr.data(), masked.bytes(), 2) == 0);
 }
-} // folly
+} // namespace folly
index d2fd02a91b891be5b500fce4dfd767a8927f5e24..c40032028edf8dcd8f6d34877af395e705eaf402 100644 (file)
@@ -395,7 +395,7 @@ std::ostream& operator<<(std::ostream& os, const IPAddressV6& addr);
 void toAppend(IPAddressV6 addr, std::string* result);
 void toAppend(IPAddressV6 addr, fbstring* result);
 
-}  // folly
+} // namespace folly
 
 namespace std {
 template <>
@@ -404,4 +404,4 @@ struct hash<folly::IPAddressV6> {
     return addr.hash();
   }
 };
-}  // std
+} // namespace std
index ffd5c9b734a60447f5616e3a0aaafc5d41b14a5c..b9a9a5922eead622ab49935b303810eff81efff8 100644 (file)
@@ -115,4 +115,4 @@ using CountedIntrusiveList = boost::intrusive::list<
     boost::intrusive::member_hook<T, SafeIntrusiveListHook, PtrToMember>,
     boost::intrusive::constant_time_size<true>>;
 
-} // folly
+} // namespace folly
index c4fe9c1cbcaa5ad1a1d0abe60c37018811852dca..c0b7b12e12ee5bed19c7f6459fc64809215bc76c 100644 (file)
@@ -398,7 +398,7 @@ class emplace_iterator_impl
   emplace_iterator_impl& operator=(const emplace_iterator_impl&) = default;
   emplace_iterator_impl& operator=(emplace_iterator_impl&&) noexcept = default;
 };
-} // folly::detail
+} // namespace detail
 
 /**
  * Behaves just like std::insert_iterator except that it calls emplace()
index b8fc553925fcf8ba4a8d20b0ff01163d3e690112..983831e063002330a0dda0596c6fe203a81d8f26 100644 (file)
@@ -338,7 +338,7 @@ struct LockTraitsImpl<Mutex, MutexLevel::UPGRADE, true>
   }
 };
 
-} // detail
+} // namespace detail
 
 /**
  * LockTraits describes details about a particular mutex type.
@@ -637,4 +637,4 @@ struct LockPolicyFromExclusiveToShared : public LockPolicyShared {
   }
 };
 
-} // folly
+} // namespace folly
index 081d3f8f4a349aa536885a6b54b783edab4e6b28..a488815589d00234e4e934acdde667a215dac9a9 100644 (file)
@@ -96,6 +96,6 @@ struct LockTraits<boost::recursive_timed_mutex>
     return mutex.try_lock_for(detail::toBoostDuration(timeout));
   }
 };
-} // folly
+} // namespace folly
 
 #endif // FOLLY_LOCK_TRAITS_HAVE_TIMED_MUTEXES
index eca0b29b7fda3bc27b0ef97dab48e00e9345962d..90a4c85aa25e3cd4f69febb5511704f5f7d95423 100644 (file)
@@ -284,5 +284,4 @@ template <class In, class... Stages> class MPMCPipeline {
   StageTuple stages_;
 };
 
-
-}  // namespaces
+} // namespace folly
index 45892826e955209d1d57cc63f2611088f5479d2d..8db2e6d3c70b85b1514b061bc4f8b610bf1ca586 100644 (file)
@@ -150,4 +150,4 @@ std::ostream& operator<<(std::ostream& os, MacAddress address) {
   return os;
 }
 
-} // folly
+} // namespace folly
index 739bb226461c4f5114c745908ecd0639b913c3f9..27450751a3153575df7cc7dd6df05074b17a1b7a 100644 (file)
@@ -229,4 +229,4 @@ toAppend(MacAddress address, Tgt* result) {
 
 std::ostream& operator<<(std::ostream& os, MacAddress address);
 
-}  // folly
+} // namespace folly
index a130c46c1e4e35411ff7db997b35df2709c3e908..32b7277d2ae31dcb0a8634348f71af2ba22fb918 100644 (file)
@@ -30,6 +30,6 @@ namespace detail {
       sformat("mallctl {}: {} ({})", cmd, errnoStr(err), err));
 }
 
-} // detail
+} // namespace detail
 
-} // folly
+} // namespace folly
index 32895964af5c31e2edca5813bcda4a7f40402021..f883a5f6a9a8a204ff8789a6d3e6bf34a8845a01 100644 (file)
@@ -42,7 +42,7 @@ void mallctlHelper(const char* cmd, T* out, T* in) {
   }
 }
 
-} // detail
+} // namespace detail
 
 template <typename T>
 void mallctlRead(const char* cmd, T* out) {
@@ -64,4 +64,4 @@ inline void mallctlCall(const char* cmd) {
   mallctlRead<unsigned>(cmd, nullptr);
 }
 
-} // folly
+} // namespace folly
index cb7bfe37bd57c72027913b3db4bebac71f7dfc0a..77d6a5bec55e5ac0cb927383ae31bd1c2a98d846 100644 (file)
@@ -298,6 +298,6 @@ FOLLY_MALLOC_CHECKED_MALLOC FOLLY_MALLOC_NOINLINE inline void* smartRealloc(
 _GLIBCXX_END_NAMESPACE_VERSION
 #endif
 
-} // folly
+} // namespace folly
 
 #endif // !defined(_GLIBCXX_USE_FB) || defined(_LIBSTDCXX_FBSTRING)
index e38446b3ad5327569de61e72fc62be4ddceac3f3..15dd4b1846ae5c3b8dc686801bc25119c8302a98 100644 (file)
@@ -280,4 +280,4 @@ auto get_ref_default(
   }
   return detail::extract_default(keysDefault...);
 }
-}  // namespace folly
+} // namespace folly
index 39b868c18058f499c73745d1a597a0e1e05c2809..121f43dbdd53803a2029d5703d8042946e9b8f6e 100644 (file)
@@ -546,4 +546,4 @@ class enable_shared_from_this : public std::enable_shared_from_this<T> {
 
 #endif
 
-}  // namespace folly
+} // namespace folly
index ae4cac71aeaba2487ec745840aa604ea1daf4179..5165c0735500f504644272b9c1a135d73186c1ab 100644 (file)
@@ -97,7 +97,7 @@ void getDeviceOptions(dev_t device, off_t& pageSize, bool& autoExtend) {
 inline void getDeviceOptions(dev_t, off_t&, bool&) {}
 #endif
 
-}  // namespace
+} // namespace
 
 void MemoryMapping::init(off_t offset, off_t length) {
   const bool grow = options_.grow;
@@ -246,7 +246,7 @@ bool memOpInChunks(std::function<int(void*, size_t)> op,
   return true;
 }
 
-}  // anonymous namespace
+} // namespace
 
 bool MemoryMapping::mlock(LockMode lock) {
   size_t amountSucceeded = 0;
@@ -398,4 +398,4 @@ void mmapFileCopy(const char* src, const char* dest, mode_t mode) {
                        srcMap.range().size());
 }
 
-}  // namespace folly
+} // namespace folly
index 2ceede771ce2b61d7097d55d2535109d6d7604a5..382206320f873c06f466b5c98c927434295edd51 100644 (file)
@@ -248,4 +248,4 @@ void alignedForwardMemcpy(void* dest, const void* src, size_t size);
  */
 void mmapFileCopy(const char* src, const char* dest, mode_t mode = 0666);
 
-}  // namespace folly
+} // namespace folly
index de1f5354ee3f80f8f17c01a112aa4680221452e4..fc01aa918c02a24589f04e9db2c79c7e38ef2d12 100644 (file)
@@ -34,7 +34,7 @@
 
 namespace folly {
 
-namespace details {
+namespace detail {
 template <typename...>
 struct Overload;
 
@@ -53,14 +53,14 @@ struct Overload<Case> : Case {
 
   using Case::operator();
 };
-} // details
+} // namespace detail
 
 /*
  * Combine multiple `Cases` in one function object
  */
 template <typename... Cases>
 decltype(auto) overload(Cases&&... cases) {
-  return details::Overload<typename std::decay<Cases>::type...>{
+  return detail::Overload<typename std::decay<Cases>::type...>{
       std::forward<Cases>(cases)...};
 }
 
@@ -76,4 +76,4 @@ decltype(auto) variant_match(Variant&& variant, Cases&&... cases) {
       overload(std::forward<Cases>(cases)...), std::forward<Variant>(variant));
 }
 
-} // folly
+} // namespace folly
index ca499aad0f70ad0626f620c06aca676caa400ce9..88282d9d12c80a7f04eb0cbd9ec4d6bde2e1dd68 100644 (file)
@@ -67,7 +67,7 @@ struct NodeValid<T, NS,
                      NS % alignof(T) == 0)>::type> {
   typedef void type;
 };
-}  // namespace detail
+} // namespace detail
 
 template <class T, size_t NS>
 class Node<T, NS, typename detail::NodeValid<T,NS>::type> {
@@ -190,7 +190,7 @@ struct IteratorBase {
   > type;
 };
 
-}  // namespace detail
+} // namespace detail
 
 /**
  * Wrapper around iterators to Node to return iterators to the underlying
@@ -510,5 +510,5 @@ class Adaptor {
   size_t lastCount_;  // number of elements in last Node
 };
 
-}  // namespace padded
-}  // namespace folly
+} // namespace padded
+} // namespace folly
index 423c9a2ca0439a0dae217580c9149f9278eab3d5..0f549868bdd0bb0ea4445bce692fbf8c56bbe669 100644 (file)
@@ -362,7 +362,7 @@ constexpr auto kIsBigEndian = !kIsLittleEndian;
 namespace FOLLY_GFLAGS_NAMESPACE { }
 namespace gflags {
 using namespace FOLLY_GFLAGS_NAMESPACE;
-}  // namespace gflags
+} // namespace gflags
 #endif
 
 // for TARGET_OS_IPHONE
index 8aca5966d602538bd4965b79e2c5d32ea3a53a91..cd8cf027dc34efcb8be2c25983f11a0b3310934d 100644 (file)
@@ -517,7 +517,7 @@ struct RWTicketIntTrait<32> {
   }
 #endif
 };
-}  // detail
+} // namespace detail
 
 template <size_t kBitWidth, bool kFavorWriter = false>
 class RWTicketSpinLockT {
@@ -761,7 +761,7 @@ typedef RWTicketSpinLockT<64> RWTicketSpinLock64;
 
 #endif  // RW_SPINLOCK_USE_X86_INTRINSIC_
 
-}  // namespace folly
+} // namespace folly
 
 #ifdef RW_SPINLOCK_USE_X86_INTRINSIC_
 #undef RW_SPINLOCK_USE_X86_INTRINSIC_
index f2f3b4ba9397b462fa6267f71ddb66e1a0db6b23..39fbd8e41a6b7b6d730f0d2068d27aaeefa3ab8b 100644 (file)
@@ -67,7 +67,7 @@ struct SeedData {
   std::array<uint32_t, stateSize> seedData;
 };
 
-}  // namespace detail
+} // namespace detail
 
 template <class RNG, class /* EnableIf */>
 void Random::seed(RNG& rng) {
@@ -83,4 +83,4 @@ auto Random::create() -> RNG {
   return RNG(s);
 }
 
-}  // namespaces
+} // namespace folly
index 4f2db41a2d4515bbe60b1bf72cea80a748fb5f2c..37174c793ef10ade25a60efc29ec0607980fd5af 100644 (file)
@@ -28,7 +28,7 @@ void writeStderr(const char* s, size_t len) {
 void writeStderr(const char* s) {
   writeStderr(s, strlen(s));
 }
-}  // namespace
+} // namespace
 
 void assertionFailure(const char* expr, const char* msg, const char* file,
                       unsigned int line, const char* function) {
index ad96afdc4c5a37a1a9944437d1b77a9b8daba591..a8c269147a068ae948d56cf155244f05d3ad250a 100644 (file)
@@ -280,7 +280,7 @@ operator+(detail::ScopeGuardOnExit, FunctionType&& fn) {
 }
 } // namespace detail
 
-} // folly
+} // namespace folly
 
 #define SCOPE_EXIT \
   auto FB_ANONYMOUS_VARIABLE(SCOPE_EXIT_STATE) \
index 0b00b06898dcab9e7c73795cd61c2972128151c7..3ce31b7643d0a263bb06b662c7951476ef272df3 100644 (file)
@@ -30,4 +30,4 @@ std::string shellQuote(StringPiece argument) {
   return quoted + "'";
 }
 
-} // folly
+} // namespace folly
index 0a58aa45da4c8a4ab4d3dfd4605f9838279ecae2..cefe2ddb290e0fd0577077e0266d7c3798b1ed62 100644 (file)
@@ -90,4 +90,4 @@ std::vector<std::string> shellify(
   return detail::shellify(format, std::forward<Arguments>(arguments)...);
 }
 
-} // folly
+} // namespace folly
index 4858ab503128151c0e8add97c21fb05c75cca783..0209555c19bac1b813c80ea6273587d417e09bc0 100644 (file)
@@ -106,7 +106,7 @@ struct HostAndPort {
   char* allocated;
 };
 
-} // unnamed namespace
+} // namespace
 
 namespace folly {
 
@@ -772,4 +772,4 @@ std::ostream& operator<<(std::ostream& os, const SocketAddress& addr) {
   return os;
 }
 
-} // folly
+} // namespace folly
index f3eee8eda3d77e341c34546520688f88a3edd41c..02af558f59b6371ea5eeecc0598222be00df9b9c 100644 (file)
@@ -33,7 +33,7 @@ namespace detail {
 // an octal escape sequence, or 'P' if the character is printable and
 // should be printed as is.
 extern const char cEscapeTable[];
-}  // namespace detail
+} // namespace detail
 
 template <class String>
 void cEscape(StringPiece str, String& out) {
@@ -80,7 +80,7 @@ extern const char cUnescapeTable[];
 
 // Map from the character code to the hex value, or 16 if invalid hex char.
 extern const unsigned char hexTable[];
-}  // namespace detail
+} // namespace detail
 
 template <class String>
 void cUnescape(StringPiece str, String& out, bool strict) {
@@ -158,7 +158,7 @@ namespace detail {
 // 3 = space, replace with '+' in QUERY mode
 // 4 = percent-encode
 extern const unsigned char uriEscapeTable[];
-}  // namespace detail
+} // namespace detail
 
 template <class String>
 void uriEscape(StringPiece str, String& out, UriEscapeMode mode) {
@@ -477,7 +477,7 @@ internalJoin(Delim delimiter,
   internalJoinAppend(delimiter, begin, end, output);
 }
 
-}  // namespace detail
+} // namespace detail
 
 template <class Delim, class Iterator, class String>
 void join(const Delim& delimiter,
@@ -613,7 +613,7 @@ namespace detail {
  */
 size_t hexDumpLine(const void* ptr, size_t offset, size_t size,
                    std::string& line);
-}  // namespace detail
+} // namespace detail
 
 template <class OutIt>
 void hexDump(const void* ptr, size_t size, OutIt out) {
@@ -625,4 +625,4 @@ void hexDump(const void* ptr, size_t size, OutIt out) {
   }
 }
 
-}  // namespace folly
+} // namespace folly
index ffc956d68206149419e32de52c54508f1d5a8931..0fb3f32593f8583341521650614d4601d28cac4e 100644 (file)
@@ -118,7 +118,7 @@ void stringAppendfImpl(std::string& output, const char* format, va_list args) {
   output.append(heap_buffer.get(), size_t(final_bytes_used));
 }
 
-} // anon namespace
+} // namespace
 
 std::string stringPrintf(const char* format, ...) {
   va_list ap;
@@ -274,7 +274,7 @@ const PrettySuffix* const kPrettySuffixes[PRETTY_NUM_TYPES] = {
   kPrettySISuffixes,
 };
 
-}  // namespace
+} // namespace
 
 std::string prettyPrint(double val, PrettyType type, bool addSpace) {
   char buf[100];
@@ -489,7 +489,7 @@ void toLowerAscii64(uint64_t& c) {
   c += rotated;
 }
 
-} // anon namespace
+} // namespace
 
 void toLowerAscii(char* str, size_t length) {
   static const size_t kAlignMask64 = 7;
@@ -638,7 +638,7 @@ std::string stripLeftMargin(std::string s) {
   return join("\n", piecer);
 }
 
-}   // namespace folly
+} // namespace folly
 
 #ifdef FOLLY_DEFINED_DMGL
 # undef FOLLY_DEFINED_DMGL
index 1c9eade3f9e34000b26d60ea54ded2667851d02c..9a0b37eb490ff25f9f7eec44c5137007956f7e38 100644 (file)
@@ -151,7 +151,7 @@ void checkStatus(ProcessReturnCode returnCode) {
   }
 }
 
-}  // namespace
+} // namespace
 
 Subprocess::Options& Subprocess::Options::fd(int fd, int action) {
   if (action == Subprocess::PIPE) {
@@ -215,7 +215,7 @@ struct ChildErrorInfo {
   _exit(errCode);
 }
 
-}  // namespace
+} // namespace
 
 void Subprocess::setAllNonBlocking() {
   for (auto& p : pipes_) {
@@ -670,7 +670,7 @@ bool discardRead(int fd) {
   }
 }
 
-}  // namespace
+} // namespace
 
 std::pair<std::string, std::string> Subprocess::communicate(
     StringPiece input) {
@@ -858,6 +858,6 @@ class Initializer {
 
 Initializer initializer;
 
-}  // namespace
+} // namespace
 
-}  // namespace folly
+} // namespace folly
index 98f79d282bb2f5dfd8568ebba8e491141851b946..042a1b9b91f08262c2a88ac6f6aa394f18c04f8e 100644 (file)
@@ -882,4 +882,4 @@ class Subprocess {
   std::vector<Pipe> pipes_;
 };
 
-}  // namespace folly
+} // namespace folly
index 2054aa06db0306692a17a1ec0cbd3e39e57d8076..238b2d8ea2c02522c79176e17f19f898113c8558 100644 (file)
@@ -757,7 +757,7 @@ using LockedPtrType = typename std::conditional<
     std::is_const<SynchronizedType>::value,
     typename SynchronizedType::ConstLockedPtr,
     typename SynchronizedType::LockedPtr>::type;
-} // detail
+} // namespace detail
 
 /**
  * A helper base class for implementing LockedPtr.
index 57701a11c044dac89a70ea4de068a34e00596409..3869d6c2acc68e121dcc9c31217bba0f14159b45 100644 (file)
@@ -50,4 +50,4 @@ size_t ThreadCachedArena::totalSize() const {
   return result;
 }
 
-}  // namespace folly
+} // namespace folly
index 9b22b6c9e1e1f2e089fbef18eb9093363bc10dc6..d4a5b23bb4d222ef517459cf012574436629ddeb 100644 (file)
@@ -84,4 +84,4 @@ class ThreadCachedArena {
 template <>
 struct IsArenaAllocator<ThreadCachedArena> : std::true_type { };
 
-}  // namespace folly
+} // namespace folly
index d67f3b82ee4bd2de5c1e7d6f9765f8bb7194149e..3c05074463e8ded6ff54928886b5fd748a8d2a63 100644 (file)
@@ -393,4 +393,4 @@ class ThreadLocalPtr {
   mutable typename StaticMeta::EntryID id_;
 };
 
-}  // namespace folly
+} // namespace folly
index 3887cdd39fdb04b5b9b889ec98e54591425eaa73..42e70176e353e3a410340077e72145b6ce997838 100644 (file)
@@ -73,4 +73,4 @@ int64_t TimeoutQueue::runInternal(int64_t now, bool onceOnly) {
   return nextExp;
 }
 
-}  // namespace folly
+} // namespace folly
index a20998b088560f5319e9b9ee391a3ecf732eff6d..9985e86f5112e42a864cf16c01a2f3e1dc2c420e 100644 (file)
@@ -126,4 +126,4 @@ class TimeoutQueue {
   Id nextId_;
 };
 
-}  // namespace folly
+} // namespace folly
index bf8d4b4cbc3dc0d665459500f9e13658a6d4f7ae..20e2de91f2024c18caf1210e3a1960390eb26c8b 100644 (file)
@@ -570,7 +570,7 @@ bool greater_than_impl(LHS const lhs) {
 
 FOLLY_POP_WARNING
 
-} // namespace detail {
+} // namespace detail
 
 // same as `x < 0`
 template <typename T>
index 5517337cd1c45aa85dc1395c59f6270036d45ba1..8adeb42384f876ac241af12d844c92d0a177ac08 100644 (file)
@@ -169,4 +169,4 @@ std::tuple<Ts...> unwrapTryTuple(std::tuple<folly::Try<Ts>...>&& ts) {
       std::forward<std::tuple<folly::Try<Ts>...>>(ts));
 }
 
-} // folly
+} // namespace folly
index 91d160e90fdcc2d1982af235a004c2d1aa028b3b..f38362b803c580ea0062a8616ae69dabf73a4b57 100644 (file)
@@ -505,6 +505,6 @@ makeTryWith(F&& f);
 template <typename... Ts>
 std::tuple<Ts...> unwrapTryTuple(std::tuple<folly::Try<Ts>...>&& ts);
 
-} // folly
+} // namespace folly
 
 #include <folly/Try-inl.h>
index 2a8529e4fc612a05558d82ff8a6fc4483a9f33a8..808710aa0288d79500606879ee9d8218deeb5f4a 100644 (file)
@@ -63,4 +63,4 @@ inline int uncaught_exceptions() noexcept {
 #endif
 }
 
-} // namespaces
+} // namespace folly
index 57ddfb42df495f9fc594582846bd2e471a94f8e4..d1bdfae73b736c1d59bc0bb5e8f357a71c1f7281 100644 (file)
@@ -36,7 +36,7 @@ void toLower(String& s) {
   }
 }
 
-}  // namespace
+} // namespace
 
 Uri::Uri(StringPiece str) : hasAuthority_(false), port_(0) {
   static const boost::regex uriRegex(
@@ -159,4 +159,4 @@ const std::vector<std::pair<std::string, std::string>>& Uri::getQueryParams() {
   return queryParams_;
 }
 
-}  // namespace folly
+} // namespace folly
index 6369d5225d0a9099a372669a8ce984bf070a61df..bfb88894d03b017370f9d5372c09fb7d353f87eb 100644 (file)
@@ -118,6 +118,6 @@ class Uri {
   std::vector<std::pair<std::string, std::string>> queryParams_;
 };
 
-}  // namespace folly
+} // namespace folly
 
 #include <folly/Uri-inl.h>
index 84e275adfd78e246900d9e1be0b712d242342d80..cd44d2676990c1bfefa4b3d06670f5476103b8bb 100644 (file)
@@ -164,4 +164,4 @@ inline Expected<uint64_t, DecodeVarintError> tryDecodeVarint(Range<T*>& data) {
   return val;
 }
 
-} // folly
+} // namespace folly
index da21e1716bec83b0b9c9c79fa6dfa3cead5f446f..0085ac8d41d2d25f57b933366e8d5a5a8fbcd18f 100644 (file)
@@ -116,7 +116,7 @@ void computeTables(FILE* file, const FingerprintPolynomial<DEG>& poly) {
   CHECK_ERR(fprintf(file, "\n};\n\n"));
 }
 
-}  // namespace
+} // namespace
 
 int main(int argc, char *argv[]) {
   gflags::ParseCommandLineFlags(&argc, &argv, true);
index bf082d99df3bc11374bf48e65930af1b3ae70b88..b121a205c399f8a6d5c8a5b39ed8f4feefc19584 100755 (executable)
@@ -96,8 +96,8 @@ alignas(16) extern const uint64_t groupVarintSSEMasks[512] = {
     f.write("""
 };
 
-}  // namespace detail
-}  // namespace folly
+} // namespace detail
+} // namespace folly
 """)
 
 def main():
index ec1c8df3a8aa5a84466a1df18fa3e7378d7ca22c..ccef419d9fbf258e532656df83bb419420a384ea 100644 (file)
@@ -738,5 +738,5 @@ class FOLLY_ALIGNED(64) ConcurrentHashMapSegment {
   Atom<Buckets*> buckets_{nullptr};
   Mutex m_;
 };
-}
-} // folly::detail namespace
+} // namespace detail
+} // namespace folly
index ee64ffe4bcfb1468d8ba6fc21619f27850779a96..7f4f57e366d0f64531fdbb03a3eb8e52ba33f9bc 100644 (file)
@@ -85,6 +85,5 @@ struct BitIteratorBase {
     ssize_t> type;
 };
 
-
-}  // namespace bititerator_detail
-}  // namespace folly
+} // namespace bititerator_detail
+} // namespace folly
index 8f0d70b8595d2acd0a2f0e55af2efd2018e79f98..c6d1628f4762b42f7dd79e9a77e3b00602481f20 100644 (file)
@@ -164,5 +164,5 @@ using ApplyConstVisitor = ApplyConstVisitor1<
     typename ConstVisitorResult<V, Types...>::type,
     Types...>;
 
-}  // namespace dptr_detail
-}  // namespace folly
+} // namespace dptr_detail
+} // namespace folly
index db9a178393ad4c8717086dbfa5880811f9e23030..393494587da6c2736ba6443d38a4456d9b064381 100644 (file)
@@ -138,5 +138,5 @@ class FingerprintPolynomial {
   uint64_t val_[1 + DEG/64];
 };
 
-}  // namespace detail
-}  // namespace folly
+} // namespace detail
+} // namespace folly
index f8a8dbc7819182ad1991948f9863a7d06fbcfa62..8604a745d4085ab0a5f32498ca2046436cb75654 100644 (file)
@@ -31,7 +31,8 @@
 
 using namespace std::chrono;
 
-namespace folly { namespace detail {
+namespace folly {
+namespace detail {
 
 namespace {
 
@@ -268,8 +269,7 @@ FutexResult emulatedFutexWaitImpl(
   return FutexResult::AWOKEN;
 }
 
-} // anon namespace
-
+} // namespace
 
 /////////////////////////////////
 // Futex<> specializations
@@ -316,4 +316,5 @@ Futex<EmulatedFutexAtomic>::futexWaitImpl(
       this, expected, absSystemTime, absSteadyTime, waitMask);
 }
 
-}} // namespace folly::detail
+} // namespace detail
+} // namespace folly
index f389eca3e1cde49d468019b91fce81638013b80d..57ec96fbe78e7d308f3cc8b58fae04b9be1e67f8 100644 (file)
@@ -96,5 +96,5 @@ class GroupVarintBase {
   enum { kFullGroupSize = kHeaderSize + kGroupSize * sizeof(type) };
 };
 
-}  // namespace detail
-}  // namespace folly
+} // namespace detail
+} // namespace folly
index 6dcc9a7a15ee33de4c1f846b228d8fa5ccee034f..20fd6742bf761e766dbaa62e54777c68c6175496 100644 (file)
@@ -85,5 +85,5 @@ class SlowFingerprint {
   FingerprintPolynomial<BITS-1> fp_;
 };
 
-}  // namespace detail
-}  // namespace folly
+} // namespace detail
+} // namespace folly
index fe72161a2a618d8a4e76a1db2142feecc440ab82..a88bfbb1d36a9e8f14b5db9455be3d029093a0d1 100644 (file)
@@ -397,5 +397,5 @@ struct StaticMeta : StaticMetaBase {
   }
 };
 
-}  // namespace threadlocal_detail
-}  // namespace folly
+} // namespace threadlocal_detail
+} // namespace folly
index ea8552cbf0468642e1969ac2302a29a9dbb6c4a1..325060f046f400e9b0ce491136b44a1939d014a9 100644 (file)
@@ -956,6 +956,6 @@ class FormatValue<detail::DefaultValueWrapper<dynamic, V>> {
   const detail::DefaultValueWrapper<dynamic, V>& val_;
 };
 
-}  // namespaces
+} // namespace folly
 
 #undef FB_DYNAMIC_APPLY
index d4976720d24b5053989a44637baa717861196e8a..0b1960c26609a8fd207ef4d55fda3fde41ef6047 100644 (file)
@@ -105,7 +105,7 @@ struct BitsTraits<T, typename std::enable_if<
   }
 };
 
-}  // namespace detail
+} // namespace detail
 
 /**
  * Wrapper class with static methods for various bit-level operations,
@@ -312,4 +312,4 @@ inline size_t Bits<T, Traits>::count(const T* begin, const T* end) {
   return n;
 }
 
-}  // namespace folly
+} // namespace folly
index c4b726b1ee191d5f785448cb0133ac39cabba54f..4430e29c778c93fdaf689e17e5dc470efd21a6e8 100644 (file)
@@ -213,7 +213,7 @@ template <typename Fn> EnableForArgTypes<Fn, int64_t, std::string>
 invokeForKeyValue(Fn fn, const folly::dynamic& k, const folly::dynamic& v) {
   fn(k.asInt(), v.asString());
 }
-}  // namespace detail
+} // namespace detail
 
 template <typename Fn>
 void DynamicParser::optional(const folly::dynamic& key, Fn fn) {
@@ -300,4 +300,4 @@ inline const folly::dynamic& DynamicParser::ParserStack::value() const{
   return *value_;
 }
 
-}  // namespace folly
+} // namespace folly
index f6fe315221c9ceb14c379f0280ffa5887465d528..9c9031791fa77b462c42ff44fa567a7d5373b62c 100644 (file)
@@ -42,7 +42,7 @@ folly::dynamic& insertAtKey(
     "Unsupported key type ", key.typeName(), " of ", detail::toPseudoJson(key)
   );
 }
-}  // anonymous namespace
+} // namespace
 
 void DynamicParser::reportError(
     const folly::dynamic* lookup_k,
@@ -187,6 +187,6 @@ std::string toPseudoJson(const folly::dynamic& d) {
   ss << d;
   return ss.str();
 }
-}  // namespace detail
+} // namespace detail
 
-}  // namespace folly
+} // namespace folly
index c84597ff82a843ca0117abd01c06d0ca726500c9..386eed327a9764d1033212b25fc658c2ccb4510d 100644 (file)
@@ -188,7 +188,7 @@ namespace detail {
 // Firstly, the input dynamic need not correspond to valid JSON.  Secondly,
 // wrapError() uses integer-keyed objects to report arrary-indexing errors.
 std::string toPseudoJson(const folly::dynamic& d);
-}  // namespace detail
+} // namespace detail
 
 /**
  * With DynamicParser::OnError::THROW, reports the first error.
@@ -392,6 +392,6 @@ class DynamicParser {
   bool allowNonStringKeyErrors_{false};  // See the setter's docblock.
 };
 
-}  // namespace folly
+} // namespace folly
 
 #include <folly/experimental/DynamicParser-inl.h>
index 20d106a218f9eded8894e69a2be332bd94f2aa98..15d3d5d6b48f01133914dfc04662ad3237615411 100644 (file)
@@ -516,7 +516,7 @@ class UpperBitsReader : ForwardPointers<Encoder::forwardQuantum>,
   ValueType value_;
 };
 
-}  // namespace detail
+} // namespace detail
 
 // If kUnchecked = true the caller must guarantee that all the
 // operations return valid elements, i.e., they would never return
index ee5717d051ab013196082b81593ce7ad8cd4b768..f2f806cb0bac7de5228c757cfb33b2fa186d3dc2 100644 (file)
@@ -195,4 +195,4 @@ void EventCount::await(Condition condition) {
   }
 }
 
-}  // namespace folly
+} // namespace folly
index c8d1c163ceb2f33a47d048f173ee0c070969ebb2..a8c3c1288079873ea59c61c8f9d9828404decf88 100644 (file)
@@ -334,4 +334,4 @@ inline bool FlatCombiningPriorityQueue<T, PriorityQueue, Mutex, Atom>::tryPeek(
   } // outer while loop
 }
 
-} // namespace folly {
+} // namespace folly
index 2a94501523340d28c82ddc07afbbdee20236cc1e..63a2ad7c0a67706a30ae20122c9a6fb0d80d1f6b 100644 (file)
@@ -83,7 +83,7 @@ struct UniformDistributionFunctor {
   milliseconds operator()() { return milliseconds(dist(generator)); }
 };
 
-} // anonymous namespace
+} // namespace
 
 FunctionScheduler::FunctionScheduler() {}
 
index bf14f33e9cb4770af69bf85adb8f2ef9816e992f..48d8dd2dec7712f2becc387ce43c5daf7265af90 100644 (file)
@@ -225,4 +225,4 @@ class FutureDAGFunctor {
   virtual ~FutureDAGFunctor(){}
 };
 
-} // folly
+} // namespace folly
index 972b62d79a982bf2993a0472330f3adce8b494fd..a98de9694a97dcbad3b72036e4827701e0d1b01b 100644 (file)
@@ -147,6 +147,6 @@ struct Haswell : public Nehalem {
 #endif
   }
 };
-}
-}
-} // namespaces
+} // namespace instructions
+} // namespace compression
+} // namespace folly
index 481efd000457d5d95a4ea0a68bd16e9c779607c6..91625a79a87db0a2b2e96ec9c04bc2815c816ecb 100644 (file)
@@ -165,4 +165,4 @@ JemallocNodumpAllocator& globalJemallocNodumpAllocator() {
   return *instance;
 }
 
-} // folly
+} // namespace folly
index e6756aa170cef23fc43b6ea755816a9e6f54b05b..93b14f79dae823f5c015063706a3b8668a9e2e4c 100644 (file)
@@ -115,4 +115,4 @@ class JemallocNodumpAllocator {
  */
 JemallocNodumpAllocator& globalJemallocNodumpAllocator();
 
-} // folly
+} // namespace folly
index 19f86663ec3082dabfee51cf53f6403e2d71abfe..ebb73662f76a9f5d4ddb96ab80a9b9fcedb02515 100644 (file)
@@ -37,7 +37,7 @@ std::string guessProgramName() {
   }
 }
 
-}  // namespace
+} // namespace
 
 ProgramExit::ProgramExit(int status, const std::string& msg)
   : std::runtime_error(msg),
@@ -271,4 +271,4 @@ void NestedCommandLineApp::doRun(const std::vector<std::string>& args) {
   info.command(vm, cmdArgs);
 }
 
-}  // namespaces
+} // namespace folly
index b4a9865d0e54b98d5141f3ec8083a1164c221604..2421034162ad68ce6b4fca957d47eec06703771c 100644 (file)
@@ -153,4 +153,4 @@ class NestedCommandLineApp {
   std::map<std::string, std::string> aliases_;
 };
 
-}  // namespaces
+} // namespace folly
index 842cfbca8b802df58d110d92aebf5f65c7efc6c9..21f0fddc29290160553dbe46540ac1a784286bf2 100644 (file)
@@ -244,7 +244,7 @@ const std::unordered_map<std::string, FlagAdder> gFlagAdders = {
 #undef X
 };
 
-}  // namespace
+} // namespace
 
 po::options_description getGFlags(ProgramOptionsStyle style) {
   static const std::unordered_set<std::string> gSkipFlags{
@@ -316,7 +316,7 @@ NestedCommandLineParseResult doParseNestedCommandLine(
   return result;
 }
 
-}  // namespace
+} // namespace
 
 NestedCommandLineParseResult parseNestedCommandLine(
     int argc, const char* const argv[],
@@ -330,4 +330,4 @@ NestedCommandLineParseResult parseNestedCommandLine(
   return doParseNestedCommandLine(po::command_line_parser(cmdline), desc);
 }
 
-}  // namespaces
+} // namespace folly
index d92b038e88972bd3ce8eddffd25fcd455ce7a49f..38aacd28c374c15c320dce27cc5b2b7b3f6c1013 100644 (file)
@@ -82,4 +82,4 @@ NestedCommandLineParseResult parseNestedCommandLine(
     const std::vector<std::string>& cmdline,
     const boost::program_options::options_description& desc);
 
-}  // namespaces
+} // namespace folly
index 416874dff41306a1c82c357f4ec6add6d9c91502..ae15dd3d91ec0c64dac76e4c01647b70d63ef47c 100644 (file)
@@ -42,4 +42,4 @@ void stringPieceDel(StringPiece piece, const Alloc& alloc) {
     .deallocate(const_cast<char*>(piece.data()), piece.size());
 }
 
-} // folly
+} // namespace folly
index d828d65e30c95111a5e57920ee4891b7f3bff27c..8c2c1ed6cbf49084e1cdfeeafd19e32d688fb216 100644 (file)
@@ -211,4 +211,4 @@ class StringKeyedMap
   }
 };
 
-} // folly
+} // namespace folly
index a4befc0172c39968efe36f9ed11287b6585200e9..7b48d238bb8ac6b9e2a7021b2606f09cb00eb84c 100644 (file)
@@ -196,4 +196,4 @@ class StringKeyedSetBase
 
 using StringKeyedSet = StringKeyedSetBase<>;
 
-} // folly
+} // namespace folly
index 9acf92cd3cf3d21c6f787b28cc24c542818e0bd2..41180cb771c9ce3ac0ba49235db78d5686a59310 100644 (file)
@@ -236,4 +236,4 @@ class StringKeyedUnorderedMap
   }
 };
 
-} // folly
+} // namespace folly
index 4fc1b71032ac4dbd7881b686e202b7d3fccf1240..11317ede72cbb6519e8d78bbeec5dffacd41b84a 100644 (file)
@@ -230,4 +230,4 @@ class BasicStringKeyedUnorderedSet
 
 typedef BasicStringKeyedUnorderedSet<> StringKeyedUnorderedSet;
 
-} // folly
+} // namespace folly
index cbaa3246c43ed859294894d03d12de91ebed70c1..f89e1af5d8730c25bd93ec07bb03f9fdc35f7813 100644 (file)
@@ -50,7 +50,7 @@ fs::path generateUniquePath(fs::path path, StringPiece namePrefix) {
   return path;
 }
 
-}  // namespace
+} // namespace
 
 TemporaryFile::TemporaryFile(StringPiece namePrefix,
                              fs::path dir,
@@ -175,7 +175,7 @@ bool hasNoPCREPatternMatch(StringPiece pattern, StringPiece target) {
   return !hasPCREPatternMatch(pattern, target);
 }
 
-}  // namespace detail
+} // namespace detail
 
 CaptureFD::CaptureFD(int fd, ChunkCob chunk_cob)
     : chunkCob_(std::move(chunk_cob)), fd_(fd), readOffset_(0) {
@@ -222,5 +222,5 @@ std::string CaptureFD::readIncremental() {
   return std::string(buf.get(), size);
 }
 
-}  // namespace test
-}  // namespace folly
+} // namespace test
+} // namespace folly
index a02a1a874e267bb627b5c650314eae68dea4e4e0..b6d2ad745947eb666dee12fa3ad00ff52f4fae1f 100644 (file)
@@ -167,9 +167,9 @@ auto msvcSuppressAbortOnInvalidParams(Func func) -> decltype(func()) {
   )
 
 namespace detail {
-  bool hasPCREPatternMatch(StringPiece pattern, StringPiece target);
-  bool hasNoPCREPatternMatch(StringPiece pattern, StringPiece target);
-}  // namespace detail
+bool hasPCREPatternMatch(StringPiece pattern, StringPiece target);
+bool hasNoPCREPatternMatch(StringPiece pattern, StringPiece target);
+} // namespace detail
 
 /**
  * Use these patterns together with CaptureFD and EXPECT_PCRE_MATCH() to
@@ -235,5 +235,5 @@ class CaptureFD {
   off_t readOffset_;  // for incremental reading
 };
 
-}  // namespace test
-}  // namespace folly
+} // namespace test
+} // namespace folly
index 9397d90e320be5179f76c150fa972c99057ddffd..b808ac19360bbbc55420f6491ed7b7eeba6ce758 100644 (file)
@@ -93,7 +93,7 @@ struct TupleSelect<TemplateSeq<std::size_t, Ns...>> {
   }
 };
 
-}  // namespace detail
+} // namespace detail
 
 // Return a tuple consisting of the elements at a range of indices.
 //
@@ -122,4 +122,4 @@ auto tuplePrepend(T&& car, U&& cdr)
                         std::forward<U>(cdr));
 }
 
-}  // namespaces
+} // namespace folly
index cbf7f63fdf053befb69ed99fdbfb11f728080e65..845fcdbec1606945e74c859091d88e366216b4b4 100644 (file)
@@ -53,4 +53,4 @@ __cxa_eh_globals* __cxa_get_globals(void) noexcept;
 __cxa_eh_globals* __cxa_get_globals_fast(void) noexcept;
 }
 
-}  // namespace __cxxabiv1
+} // namespace __cxxabiv1
index a5339853d7fbd30ad47a3979b1ba8456e6e3f6fd..232b09fc653a083827063324e9d1983f4383379c 100644 (file)
@@ -40,7 +40,7 @@ typedef StackTraceStack* (*GetExceptionStackTraceStackType)(void);
 GetExceptionStackTraceStackType getExceptionStackTraceStackFn;
 }
 
-}  // namespace
+} // namespace
 
 namespace folly {
 namespace exception_tracer {
@@ -110,7 +110,7 @@ bool isAbiCppException(const __cxa_exception* exc) {
   return (exc->unwindHeader.exception_class & 0xffffffff) == cppClass;
 }
 
-}  // namespace
+} // namespace
 
 std::vector<ExceptionInfo> getCurrentExceptions() {
   struct Once {
@@ -212,7 +212,7 @@ void unexpectedHandler() {
   origUnexpected();
 }
 
-}  // namespace
+} // namespace
 
 void installHandlers() {
   struct Once {
@@ -224,5 +224,5 @@ void installHandlers() {
   static Once once;
 }
 
-}  // namespace exception_tracer
-}  // namespace folly
+} // namespace exception_tracer
+} // namespace folly
index 9bd632be747b13bcb9bc96db8127c8ddbac14fdc..03c51b3db960efc4f387014097fe1fd199e76e09 100644 (file)
@@ -52,5 +52,5 @@ std::vector<ExceptionInfo> getCurrentExceptions();
  */
 void installHandlers();
 
-}  // namespace exception_tracer
-}  // namespace folly
+} // namespace exception_tracer
+} // namespace folly
index 04d29e9cf3028abe9704bae99fd27f4a1ee08913..dcee56921e918d1c17bb173e6db2ab2f7d034be2 100644 (file)
@@ -84,8 +84,8 @@ DECLARE_CALLBACK(CxaRethrow);
 DECLARE_CALLBACK(CxaEndCatch);
 DECLARE_CALLBACK(RethrowException);
 
-} // exception_tracer
-} // folly
+} // namespace exception_tracer
+} // namespace folly
 
 // Clang is smart enough to understand that the symbols we're loading
 // are [[noreturn]], but GCC is not. In order to be able to build with
index 358f7011c5c925aaf6d7b3e8a040b81d01531e55..63fe1ce7bc2fe82af8fb5284cefd1860161a88a9 100644 (file)
@@ -679,4 +679,4 @@ class FlatCombining {
   }
 };
 
-} // namespace folly {
+} // namespace folly
index 17c25ca8c5d3744ade56bfac520f3069fb69dbfc..4736dfa82b52a70c926a67de6fa375af2c93a7e3 100644 (file)
@@ -236,4 +236,4 @@ class FcCustomExample : public FlatCombining<
   Data data_;
 };
 
-} // namespace folly {
+} // namespace folly
index 623563ef6dbfbecba1ac9aeb8b2d4abd3132dca3..81007de7e6b4f349f6136a412cea44cc8ee1da34 100644 (file)
@@ -220,5 +220,5 @@ uint64_t run_test(
   }
 }
 
-} // namespace test {
-} // namespace folly {
+} // namespace test
+} // namespace folly
index 2e49e348aa1bb666b3504ae9c8a584e8a5bd5c06..4aca6c53b1a76a7f41ef156dbc8599045e82256a 100644 (file)
@@ -174,8 +174,8 @@ inline void benches(std::string name) {
   std::cout << "----------------------------------------------------------\n";
 }
 
-} // namespace hazptr {
-} // namespace folly {
+} // namespace hazptr
+} // namespace folly
 
 /*
 ------------------------------------------- no amb - no tc
index cbcf88e0dbeee64fba5ad5ae046523b7415a1997..7627c44f22ae67e6b1806dfcb142bbc7f0a208c1 100644 (file)
@@ -74,5 +74,5 @@ class LockFreeLIFO {
   std::atomic<Node*> head_ = {nullptr};
 };
 
-} // namespace folly {
-} // namespace hazptr {
+} // namespace folly
+} // namespace hazptr
index 49d561ade61a523f5ee9401d06ebfe44026fc1ac..81b79ca84ed9bec24d5ba5639d8d37ba3e3e0a3f 100644 (file)
@@ -247,5 +247,5 @@ class MWMRListSet {
   }
 };
 
-} // namespace folly {
-} // namespace hazptr {
+} // namespace folly
+} // namespace hazptr
index d0bc9785e8777dc8f82b7788e35504fe3d6c1c69..6df6a3c362f186530d22f3d0b759319e5664e7cb 100644 (file)
@@ -139,5 +139,5 @@ class SWMRListSet {
   }
 };
 
-} // namespace folly {
-} // namespace hazptr {
+} // namespace folly
+} // namespace hazptr
index 9d44c2e4a4beb7a5955f11ca0145405650f8c837..9a3ed2788edf5045a85dc579234b0e35ed1846b5 100644 (file)
@@ -62,5 +62,5 @@ class WideCAS {
   }
 };
 
-} // namespace folly {
-} // namespace hazptr {
+} // namespace folly
+} // namespace hazptr
index bb049f874eb67a9e387d1e3ddec7e05e66a493d9..d1869dfa3c42ca8d44b8c71fbad1e04dcc94714a 100644 (file)
@@ -90,5 +90,5 @@ inline memory_resource* new_delete_resource() {
   return &mr;
 }
 
-} // namespace folly {
-} // namespace hazptr {
+} // namespace folly
+} // namespace hazptr
index 614225c6b6430510649b7467442732c3292e1aab..29294dedbea5fa05fdc422768c8488eb05c90662 100644 (file)
@@ -47,5 +47,5 @@ class Node1 : public hazptr_obj_base<Node1, MyReclaimerFree<Node1>> {
   char a[100];
 };
 
-} // namespace folly {
-} // namespace hazptr {
+} // namespace folly
+} // namespace hazptr
index b8dc58e95a92a2f54c2bbe6121d52c53be4966d9..9d1b1008788b87272caa044f740530313d411c8b 100644 (file)
@@ -49,5 +49,5 @@ inline void mineReclaimFnDelete(Node2* p) {
   delete p;
 }
 
-} // namespace folly {
-} // namespace hazptr {
+} // namespace folly
+} // namespace hazptr
index 59dc866c2d0dbe66f2585674fdd4368b0d8c4c31..c84b868c1d554026d9e558c2a71140e25594965a 100644 (file)
@@ -383,7 +383,7 @@ std::ostream& operator<<(std::ostream& os, const iocb& cb) {
   return os;
 }
 
-} // anonymous namespace
+} // namespace
 
 std::ostream& operator<<(std::ostream& os, const AsyncIOOp& op) {
   os << "{" << op.state_ << ", ";
index eb267f6f7e978cecd5d6b17092c69028d202da02..7540c8adc48dff5c63e16477d1cd0fd6022f3abe 100644 (file)
@@ -284,7 +284,7 @@ void testReads(const std::vector<TestSpec>& specs, AsyncIO::PollMode pollMode) {
   testReadsQueued(specs, pollMode);
 }
 
-} // anonymous namespace
+} // namespace
 
 TEST(AsyncIO, ZeroAsyncDataNotPollable) {
   testReads({{0, 0}}, AsyncIO::NOT_POLLABLE);
index a10c380ac21cbf08f95b53e3c36286d0329dd201..49d55254492e6d78f8b899744894893faa198424 100644 (file)
@@ -55,7 +55,7 @@ std::string formatMsg(
 
   return formatter.formatMessage(logMessage, category);
 }
-} // unnamed namespace
+} // namespace
 
 TEST(GlogFormatter, log) {
   auto tid = getOSThreadID();
index 3468c29f8fe97cb4044177881dcd2a412f84ce10..42e25649d9533576f36a10a94b8975171f654196 100644 (file)
@@ -52,7 +52,7 @@ StringPiece stripBuckOutPrefix(StringPiece filename) {
     idx = end + 1;
   }
 }
-} // unnamed namespace
+} // namespace
 
 std::string getXlogCategoryNameForFile(StringPiece filename) {
   // Buck mangles the directory layout for header files.  Rather than including
index 96030510ec7922aaca9dce64274418b151428ced..64acdcb72d9c4b3ee953436694291f25b1c13104 100644 (file)
@@ -326,7 +326,7 @@ bool isColorfulTty(int options, int fd) {
   return !(term == nullptr || term[0] == '\0' || strcmp(term, "dumb") == 0);
 }
 
-} // anonymous namespace
+} // namespace
 
 OStreamSymbolizePrinter::OStreamSymbolizePrinter(std::ostream& out, int options)
     : SymbolizePrinter(options, isColorfulTty(options, getFD(out))),
index 0a1ec16d97c86f7b2614101b4953bcd8ee32b7a7..f8b7766ec85b565b05797d8460b6f129c5f74003 100644 (file)
@@ -253,7 +253,7 @@ T testValue(int bits) {
   CHECK_LE(value, std::numeric_limits<T>::max());
   return static_cast<T>(value);
 }
-} // anonymous namespace
+} // namespace
 
 TEST(Bits, Boundaries) {
   uint8_t buf[20];
index 55af37d84d189cace91cbd8d0fe8b020eff99739..2583a668a1f3c6b9770b4085a9cc414c281ec063 100644 (file)
@@ -41,7 +41,7 @@ uint8_t slowDefaultNumLowerBits(size_t upperBound, size_t size) {
   return uint8_t(folly::findLastSet(upperBound / size) - 1);
 }
 
-}  // namespace
+} // namespace
 
 TEST(EliasFanoCoding, defaultNumLowerBits) {
   // Verify that slowDefaultNumLowerBits and optimized
@@ -207,7 +207,7 @@ void free() {
   list.free();
 }
 
-}  // namespace bm
+} // namespace bm
 
 BENCHMARK(Next, iters) {
   bmNext<bm::Reader>(bm::list, bm::data, iters);
index 80fdcc473769baa300a1761609e5cfdac1f366d6..4f936ae6cc3e9b981995287818a858311c567f1f 100644 (file)
@@ -74,7 +74,7 @@ void randomPartition(Random& random, T key, int n,
   }
 }
 
-}  // namespace
+} // namespace
 
 TEST(EventCount, Simple) {
   // We're basically testing for no deadlock.
index 5da41d24b5613cd09f3498239de36e49c8f095e4..73088c27e20705a11e1ba6bf029b97a999135ce9 100644 (file)
@@ -52,7 +52,7 @@ void delay(int n) {
   usleep(usec.count());
 }
 
-} // unnamed namespace
+} // namespace
 
 TEST(FunctionScheduler, StartAndShutdown) {
   FunctionScheduler fs;
@@ -516,7 +516,7 @@ class PThreadCreateFailure {
 };
 
 std::atomic<int> PThreadCreateFailure::forceFailure_{0};
-} // unnamed namespce
+} // namespace
 
 // Replace the system pthread_create() function with our own stub, so we can
 // trigger failures in the StartThrows() test.
index 42ae2b125db63c3844d3fb2bc432aa24b2168f0c..ec7817e057a9e0490112281a5c447c6c4691a9f9 100644 (file)
@@ -157,7 +157,7 @@ void runEcho(const po::variables_map& options,
   }
 }
 
-}  // namespace
+} // namespace
 
 int main(int argc, char *argv[]) {
   // Initialize a NestedCommandLineApp object.
index 0b3bd38258243afc6422db5b6f29557f8fd7aba7..28e5e5e8d4799d448253d182051f0eba6c9ae0e7 100644 (file)
@@ -60,7 +60,7 @@ std::string callHelper(std::initializer_list<std::string> args,
   return p.first;
 }
 
-}  // namespace
+} // namespace
 
 TEST(ProgramOptionsTest, Errors) {
   callHelper({}, 1);
index da404613087679d2faf864511c93655ef83e0c23..1c3c2723acd89984a742ece44f3dab1eaa55027b 100644 (file)
@@ -38,7 +38,7 @@ void foo(const po::variables_map& options,
   }
 }
 
-}  // namespace
+} // namespace
 
 int main(int argc, char *argv[]) {
   folly::NestedCommandLineApp app("", "0.1", "", "", init);
index 208c841570a5b2042c5f80802fbf5b129c271de4..2a662af5565e6a4a1ad2b2e02107d606cb16b841 100644 (file)
@@ -62,7 +62,7 @@ std::string callHelper(ProgramOptionsStyle style,
   return p.first;
 }
 
-}  // namespace
+} // namespace
 
 // name value
 
index 12691b877b2974b7491361da78dcc44cbe08911f..a781c3e5ccde78831191f57e14990d1541693ed5 100644 (file)
@@ -36,7 +36,7 @@ void print(const po::variables_map& vm, const std::string& name) {
          name.c_str(),
          folly::to<std::string>(v.as<T>()).c_str());
 }
-}  // namespace
+} // namespace
 
 int main(int argc, char *argv[]) {
   po::options_description desc;
index 549112f3b39693af1d2711882dc9254c1b9be676..6e14d7b736ee55593df2d42572e97165e6f05477 100644 (file)
@@ -222,4 +222,4 @@ AtomicBatchDispatcher<InputT, ResultT> createAtomicBatchDispatcher(
 }
 
 } // namespace fibers
-} // manespace folly
+} // namespace folly
index 854c915b42f38fd83d79cb1c5082b67ece8a31ea..280162b1c79b5b9d2166d3aea4ea617aeb17c714 100644 (file)
@@ -130,5 +130,5 @@ class FiberImpl {
   FiberContext fiberContext_;
   MainContext mainContext_;
 };
-}
-} // folly::fibers
+} // namespace fibers
+} // namespace folly
index f0aa4c9b26a1ce8b17945a31bb70508e69a4bcd4..3ea88fb215763410a298fc08f96403ec12fe930a 100644 (file)
@@ -124,5 +124,5 @@ inline void EventBaseLoopController::timedSchedule(
   delay_ms = std::max<decltype(delay_ms)>(delay_ms, 0);
   eventBase_->tryRunAfterDelay(func, uint32_t(delay_ms));
 }
-}
-} // folly::fibers
+} // namespace fibers
+} // namespace folly
index cab36c0cee1c1738c0591c175a9498800c896a83..5bc4e8cf38e07dbae3199ec9c1a61de814fda2e3 100644 (file)
@@ -107,7 +107,7 @@ class EventBaseLoopController : public LoopController {
 
   friend class FiberManager;
 };
-}
-} // folly::fibers
+} // namespace fibers
+} // namespace folly
 
 #include "EventBaseLoopController-inl.h"
index fe861330f2320a93a7a52a423f30c1edf2ecb22b..3ca843f39dd4f6375e73f67b14c298c6c758618f 100644 (file)
@@ -72,5 +72,5 @@ void Fiber::LocalData::dataHeapDestructor(void* ptr) {
   reinterpret_cast<T*>(ptr)->~T();
   freeHeapBuffer(ptr);
 }
-}
-} // folly::fibers
+} // namespace fibers
+} // namespace folly
index f5995de31b2a3c5618b68b32425ee652664b8321..10a2e64b4894a2d1febdec45f4e585342b8613ab 100644 (file)
@@ -49,7 +49,7 @@ static size_t nonMagicInBytes(unsigned char* stackLimit, size_t stackSize) {
   return (end - firstNonMagic) * sizeof(uint64_t);
 }
 
-} // anonymous namespace
+} // namespace
 
 void Fiber::resume() {
   DCHECK_EQ(state_, AWAITING);
index 8e343b318ca7f0f7acb002cc11505cfb8e572593..0b423a13863f87a5218a831955fcb851136d5902 100644 (file)
@@ -47,7 +47,7 @@ inline FiberManager::Options preprocessOptions(FiberManager::Options opts) {
   return opts;
 }
 
-} // anonymous
+} // namespace
 
 inline void FiberManager::ensureLoopScheduled() {
   if (isLoopScheduled_) {
index b6f06247ca3e5666cdc492566e84402e434cdaae..073c14f800620847e09b295452a9cb01d8fa9e1e 100644 (file)
@@ -35,7 +35,7 @@ typename std::enable_if<
   g(id);
 }
 
-} // anonymous namespace
+} // namespace
 
 template <class InputIterator, class F>
 inline void forEach(InputIterator first, InputIterator last, F&& f) {
@@ -83,5 +83,5 @@ inline void forEach(InputIterator first, InputIterator last, F&& f) {
     std::rethrow_exception(e);
   }
 }
-}
-} // folly::fibers
+} // namespace fibers
+} // namespace folly
index 7482716d63e67b365a7f983173f8f7641986b57b..b93aeb633ff5d86971fb158900ba2e3d6403c03f 100644 (file)
@@ -38,7 +38,7 @@ namespace fibers {
  */
 template <class InputIterator, class F>
 inline void forEach(InputIterator first, InputIterator last, F&& f);
-}
-} // folly::fibers
+} // namespace fibers
+} // namespace folly
 
 #include <folly/fibers/ForEach-inl.h>
index 23194998c85faf919f29988bc63e6061d8f43277..0c3be85d74aba8108a2e79514f4c124c8f74eaa2 100644 (file)
@@ -319,5 +319,5 @@ void GuardPageAllocator::deallocate(unsigned char* limit, size_t size) {
     fallbackAllocator_.deallocate(limit, size);
   }
 }
-}
-} // folly::fibers
+} // namespace fibers
+} // namespace folly
index 91dc3023c2a2ee4f793470edad80fb01366bf206..b2dfb84117c23bf601422d0512c110627d98dde9 100644 (file)
@@ -52,5 +52,5 @@ class GuardPageAllocator {
   std::allocator<unsigned char> fallbackAllocator_;
   bool useGuardPages_{true};
 };
-}
-} // folly::fibers
+} // namespace fibers
+} // namespace folly
index a797d32160398200a0baf25c096fe0b0b2f3650b..f459cfd3a646c56bbd97ff7721be2418093ae355 100644 (file)
@@ -64,5 +64,5 @@ class LoopController {
    */
   virtual void timedSchedule(std::function<void()> func, TimePoint time) = 0;
 };
-}
-} // folly::fibers
+} // namespace fibers
+} // namespace folly
index e11cbc84c85361e10e32f8797397cf4203253a4d..c41fb180f511d008885e77cb58e1371e479a6e6f 100644 (file)
@@ -109,5 +109,5 @@ class SimpleLoopController : public LoopController {
 
   friend class FiberManager;
 };
-}
-} // folly::fibers
+} // namespace fibers
+} // namespace folly
index 9717ddaab7671fd7abcf5dc6d04aaa57fa96f0c0..73e9b6d626f99a2c0cb0a375ae9750546751b26f 100644 (file)
@@ -1916,7 +1916,7 @@ void validateResults(
   EXPECT_EQ(numResultsFilled, expectedNumResults);
 }
 
-} // AtomicBatchDispatcherTesting
+} // namespace AtomicBatchDispatcherTesting
 
 #define SET_UP_TEST_FUNC                                        \
   using namespace AtomicBatchDispatcherTesting;                 \
index 1f3b8b71df1536fca68d89eae9d05d0ee573c497..81527f76ee0a7081f8f065e28ad80323b0ea7023 100644 (file)
@@ -52,7 +52,7 @@ struct ExtractFirstMemfn<Ret (T::*)(First, Args...) const> {
   typedef First type;
 };
 
-} // detail
+} // namespace detail
 
 /** Default - use boost */
 template <typename F, typename Enable = void>
@@ -67,5 +67,5 @@ struct FirstArgOf<F, typename std::enable_if<std::is_class<F>::value>::type> {
   typedef
       typename detail::ExtractFirstMemfn<decltype(&F::operator())>::type type;
 };
-}
-} // folly::fibers
+} // namespace fibers
+} // namespace folly
index 49b3c5d74d7c300d241dd694f175ae0852dfe662..9f9b61e38c7cbc9911b22ab1b3473c9ee838bee9 100644 (file)
@@ -52,4 +52,4 @@ class DrivableExecutor : public virtual Executor {
   virtual void drive() = 0;
 };
 
-} // folly
+} // namespace folly
index 919b2391e47973a912a46900ea40532178e3661b..babaeb1389994a86b307cdacc2de875615efb50d 100644 (file)
@@ -533,6 +533,6 @@ class Future {
   }
 };
 
-} // folly
+} // namespace folly
 
 #include <folly/futures/Future-inl.h>
index 7f69c41385060aadd1be619df472d570c5ab8b46..b7e316544b65d79112a3601edc9b9a733741e21d 100644 (file)
@@ -87,4 +87,4 @@ void ManualExecutor::advanceTo(TimePoint const& t) {
   run();
 }
 
-} // folly
+} // namespace folly
index 4ab0cd6333cea853140f0ae3a8c72017269c837f..b98047a04e0d0cd891557386ce3adbccbde549f7 100644 (file)
@@ -36,4 +36,4 @@ class QueuedImmediateExecutor : public Executor {
   }
 };
 
-} // folly
+} // namespace folly
index eb1151f2e403fdf5ccf52eef39af4d96c000d9c8..a2fd9cf45af7a9136044fbd7d4232e90bc38971c 100644 (file)
@@ -141,6 +141,6 @@ std::shared_ptr<Timekeeper> getTimekeeperSingleton() {
   return timekeeperSingleton_.try_get();
 }
 
-} // detail
+} // namespace detail
 
-} // folly
+} // namespace folly
index fbb1da4860afcc056901c31e45d14ad0f6a93dbf..7adb08d7274b64e88db40a55c82457db7e1ed516 100644 (file)
@@ -45,4 +45,4 @@ class ThreadWheelTimekeeper : public Timekeeper {
   HHWheelTimer::UniquePtr wheelTimer_;
 };
 
-} // folly
+} // namespace folly
index e09546ff2130e491539c201dc623280e8463098d..f6d838d8ffa80aa4498bd7b7d89815064f2db263 100644 (file)
@@ -40,7 +40,7 @@ void someThens(size_t n) {
   }
 }
 
-} // anonymous namespace
+} // namespace
 
 BENCHMARK(constantFuture) {
   makeFuture(42);
index fc57e6de6462ce1928fccfb559f121ffaa1d0366..7f024127bf6f504c9fbdbcacb386a0fdb2161dd0 100644 (file)
@@ -69,4 +69,4 @@ void TestExecutor::addImpl(Func f) {
   cv_.notify_one();
 }
 
-} // folly
+} // namespace folly
index f022bc036c6a985f44847e03a79daace396a9959..dc82a6568720d865fee7fe2d436f3f135499f29b 100644 (file)
@@ -47,4 +47,4 @@ class TestExecutor : public Executor {
   std::vector<std::thread> workers_;
 };
 
-} // folly
+} // namespace folly
index 9f7c5d1940eb8eb0451e40fa1ddda9f643dbd5a3..e7a8e415426851fb2af0f62f65281bbe939baec9 100644 (file)
@@ -2357,7 +2357,7 @@ inline detail::Skip skip(size_t count) { return detail::Skip(count); }
 inline detail::Batch batch(size_t batchSize) {
   return detail::Batch(batchSize);
 }
-} // gen
-} // folly
+} // namespace gen
+} // namespace folly
 
 FOLLY_POP_WARNING
index fbc224cf31c2bad4f2e0c2a9c6e07cc87f3f5e70..1f8a59ec29acd459d8af501002de181655208197 100644 (file)
@@ -822,7 +822,7 @@ UnwrapOr unwrapOr(Fallback&& fallback) {
   return UnwrapOr(std::forward<Fallback>(fallback));
 }
 
-} // gen
-} // folly
+} // namespace gen
+} // namespace folly
 
 #include <folly/gen/Base-inl.h>
index 3d6c988dc20b18de368be040a7ade71c0bf53001..4c7d64b76d3abfd2017af8b41507c85bca6ea2b3 100644 (file)
@@ -373,8 +373,8 @@ class Chain : public GenImpl<Value,
   static constexpr bool infinite = First::infinite || Second::infinite;
 };
 
-} // detail
-} // gen
-} // folly
+} // namespace detail
+} // namespace gen
+} // namespace folly
 
 FOLLY_POP_WARNING
index 731095eca425cd74ba2d00e6f1198bab5743a495..d4592d0821450d7f37a066faa464d6b1f0478373 100644 (file)
@@ -37,8 +37,8 @@ class Composed;
 template <class Value, class First, class Second>
 class Chain;
 
-} // detail
-} // gen
-} // folly
+} // namespace detail
+} // namespace gen
+} // namespace folly
 
 #include <folly/gen/Core-inl.h>
index f291b472ba3102504d54333c540b55d1f9965150..dde53bca8c4848d902e81d82d594fddbf2ec7fb1 100644 (file)
@@ -383,5 +383,5 @@ void SpookyHashV1::Final(uint64_t *hash1, uint64_t *hash2)
     *hash2 = h1;
 }
 
-}  // namespace hash
-}  // namespace folly
+} // namespace hash
+} // namespace folly
index bb457d5f80f3ac24fa41cabf59c3039a81a4e0d6..90460e0df9e828029071e051c41b21cbf219e083 100644 (file)
@@ -299,5 +299,5 @@ private:
     uint8_t  m_remainder;           // length of unhashed data stashed in m_data
 };
 
-}  // namespace hash
-}  // namespace folly
+} // namespace hash
+} // namespace folly
index 3a43b9f6a4611a9cb5ef494e8f6a4e9568d4daf6..2ca531de2d1c68f11a5bbc4f8fbbb687a8cbd643 100644 (file)
@@ -384,5 +384,5 @@ void SpookyHashV2::Final(uint64_t *hash1, uint64_t *hash2) const
     *hash2 = h1;
 }
 
-}  // namespace hash
-}  // namespace folly
+} // namespace hash
+} // namespace folly
index 9cc3474a68a0f7d42a18d528371831ac419406f6..1e154d4137ff9e68f5f8afe8a32c360e118ba000 100644 (file)
@@ -304,5 +304,5 @@ private:
     uint8_t  m_remainder;          // length of unhashed data stashed in m_data
 };
 
-}  // namespace hash
-}  // namespace folly
+} // namespace hash
+} // namespace folly
index 85b726b7b9407ad3bc0f71f37a485c98faa6a2d3..3a120ba10ce73793fd8c194bfd75de2686a33d4f 100644 (file)
@@ -30,4 +30,4 @@ namespace folly {
 
 void init(int* argc, char*** argv, bool removeFlags = true);
 
-} // folly
+} // namespace folly
index 80741e3e38884b3c611d3adfc38666a6297b36be..40f74e7c434f2609448164f69ea79cb0e903cc24 100644 (file)
@@ -79,7 +79,7 @@ void takeOwnershipError(bool freeOnError, void* buf,
   }
 }
 
-} // unnamed namespace
+} // namespace
 
 namespace folly {
 
@@ -1048,4 +1048,4 @@ bool IOBufEqual::operator()(const IOBuf& a, const IOBuf& b) const {
   }
 }
 
-} // folly
+} // namespace folly
index 3e68f473991479359306d126bfa4b6969e987c39..bbf698cdf1a907995c4277418d54b4116161433f 100644 (file)
@@ -218,7 +218,7 @@ struct IsUniquePtrToSL<
   std::unique_ptr<T, D>,
   typename std::enable_if<std::is_standard_layout<T>::value>::type>
   : public std::true_type { };
-}  // namespace detail
+} // namespace detail
 
 class IOBuf {
  public:
@@ -1543,6 +1543,6 @@ class IOBuf::Iterator : public boost::iterator_facade<
 inline IOBuf::Iterator IOBuf::begin() const { return cbegin(); }
 inline IOBuf::Iterator IOBuf::end() const { return cend(); }
 
-} // folly
+} // namespace folly
 
 FOLLY_POP_WARNING
index 33c97bc97007eedd23a583cf6226b6d5aacc57ef..df1518e0957a289f8d576261260d3845f1e30400 100644 (file)
@@ -62,7 +62,7 @@ appendToChain(unique_ptr<IOBuf>& dst, unique_ptr<IOBuf>&& src, bool pack) {
   }
 }
 
-} // anonymous namespace
+} // namespace
 
 namespace folly {
 
@@ -318,4 +318,4 @@ void IOBufQueue::gather(uint64_t maxLength) {
   }
 }
 
-} // folly
+} // namespace folly
index c90deaf87e405de7dd2b61734a77d7a725c5ce62..d4201fbaa315e3adfbf114c213fa129c6fc24c0d 100644 (file)
@@ -322,4 +322,4 @@ class IOBufQueue {
   std::unique_ptr<folly::IOBuf> head_;
 };
 
-} // folly
+} // namespace folly
index d64a164d6c4706a96559a51ca7e8163e1de7a3d2..ba5aac432ffb78e77adefd025e981f92314f3799 100644 (file)
@@ -266,4 +266,4 @@ void AsyncPipeWriter::handleWrite() {
   }
 }
 
-} // folly
+} // namespace folly
index c98206e5599e7f5ab579480d723488bf5d20b5f7..08db3a3e03ae9f31bdd0efd93e98b47bb2211577 100644 (file)
@@ -179,4 +179,4 @@ class AsyncPipeWriter : public EventHandler,
   }
 };
 
-} // folly
+} // namespace folly
index e6513f8259db83e1e18890554294e75e459c5d3b..2b1aa88e17db321901dc7f4cd825a691611b29d6 100644 (file)
@@ -199,7 +199,7 @@ void* initsslBioMethod(void) {
   return nullptr;
 }
 
-} // anonymous namespace
+} // namespace
 
 namespace folly {
 
index 985f3d3fefea0a230bb2d1cc3b12c85c8864c6e0..8a70d77cc188701d60875ee0bde36386f8721fe0 100644 (file)
@@ -1070,6 +1070,4 @@ void AsyncServerSocket::backoffTimeoutExpired() {
   }
 }
 
-
-
-} // folly
+} // namespace folly
index f7706126e06fd0446f37add63f6710878c452341..fad20a01700ac3fe3a14aae94977d854a9b90867 100644 (file)
@@ -876,4 +876,4 @@ class AsyncServerSocket : public DelayedDestruction
   ConnectionEventCallback* connectionEventCallback_{nullptr};
 };
 
-} // folly
+} // namespace folly
index 8c5c3247345fa34419b3ff76d6f2847ee727bd6c..b1a83cdd31f3b6231e131a97bcd92973d0884948 100644 (file)
@@ -99,4 +99,4 @@ void AsyncSignalHandler::libeventCallback(libevent_fd_t signum,
   handler->signalReceived(int(signum));
 }
 
-} // folly
+} // namespace folly
index 056655337cb7accbc3dd7adf0e34f9fc188ee5e6..39398f81d113bde7e3d122a1c75c1d4bae66dac7 100644 (file)
@@ -114,4 +114,4 @@ class AsyncSignalHandler {
   SignalEventMap signalEvents_;
 };
 
-} // folly
+} // namespace folly
index f32da3a75ad8e25372cd75854ba222b9c48ff9c4..7f8c5f13614a73f76c8a57058486a26a5bbefb69 100644 (file)
@@ -2523,4 +2523,4 @@ void AsyncSocket::setBufferCallback(BufferCallback* cb) {
   bufferCallback_ = cb;
 }
 
-} // folly
+} // namespace folly
index 09363a3cb252421847433e2e1ecb906a4a829426..beff1a07285e0bc9b93fe130f30ad87c00648790 100644 (file)
@@ -1185,4 +1185,4 @@ class AsyncSocket : virtual public AsyncTransportWrapper {
 #pragma vtordisp(pop)
 #endif
 
-} // folly
+} // namespace folly
index 2033be05441d59bfa540dc0744a20af8c935f097..7732b56295505a111eb074fde051f3993930ed5e 100644 (file)
@@ -124,4 +124,4 @@ class AsyncSocketException : public std::runtime_error {
   }
 };
 
-} // folly
+} // namespace folly
index 28c8bbc14312974c36b059f094386f4333e5c6dc..f08b77719531cd01aabfc5c14374455eaa7656a4 100644 (file)
@@ -156,4 +156,4 @@ void AsyncTimeout::libeventCallback(libevent_fd_t fd, short events, void* arg) {
   timeout->timeoutExpired();
 }
 
-} // folly
+} // namespace folly
index bb02efb2b8a1de95a2d013dc6fe131f11fe8a7a9..dbe81dc8b68bcda381f0c59a217616a6dd376143 100644 (file)
@@ -260,7 +260,7 @@ struct async_timeout_wrapper:
   TCallback callback_;
 };
 
-} // namespace detail {
+} // namespace detail
 
 template <typename TCallback>
 std::unique_ptr<AsyncTimeout> AsyncTimeout::make(
@@ -286,4 +286,4 @@ std::unique_ptr<AsyncTimeout> AsyncTimeout::schedule(
   return wrapper;
 }
 
-} // folly
+} // namespace folly
index 337fba960c71eb2624e5ea91afdf631ec91fbead..ca5cc4d2b4b2ae9b1eb1be56e1c1c49cc038102d 100644 (file)
@@ -694,4 +694,4 @@ class AsyncTransportWrapper : virtual public AsyncTransport,
   virtual std::string getSecurityProtocol() const { return ""; }
 };
 
-} // folly
+} // namespace folly
index f712dd0008fc0378fbf77f7f04266568b3e4e1d2..d371fd4d98f3d4c049e6c399541ae99bf4ab8d7a 100644 (file)
@@ -218,4 +218,4 @@ class AsyncUDPServerSocket : private AsyncUDPSocket::ReadCallback
   bool reusePort_{false};
 };
 
-} // Namespace
+} // namespace folly
index 54ca73a2350c57ea9a7f0c5fa1815e407c4afb56..4d195d36dcae40aefb785418c6c0cce9644d0acb 100644 (file)
@@ -297,4 +297,4 @@ bool AsyncUDPSocket::updateRegistration() noexcept {
   return registerHandler(uint16_t(flags | PERSIST));
 }
 
-} // Namespace
+} // namespace folly
index 892d9c90af04a7f0de7557de60576abdd1d76704..21449420942a705771714e490483ce6fbc637da7 100644 (file)
@@ -188,4 +188,4 @@ class AsyncUDPSocket : public EventHandler {
   bool reusePort_{false};
 };
 
-} // Namespace
+} // namespace folly
index c46b8ff0d701b48e529d904caab0323ee1a556e2..9063d0cb2bb81809eb2c74f9acf13a367944294f 100644 (file)
@@ -119,4 +119,4 @@ class DelayedDestruction : public DelayedDestructionBase {
     delete this;
   }
 };
-} // folly
+} // namespace folly
index 2b329db111495239f81e48e969f4c02c6aef90a1..5edd64bddbe57a8720efd6230f6fbadfaea0cbc4 100644 (file)
@@ -304,4 +304,4 @@ inline bool operator !=(
     const DelayedDestructionBase::IntrusivePtr<RightAliasType>& right) {
   return left != right.get();
 }
-} // folly
+} // namespace folly
index 11c3a601f7f7782e136a2b49486125e43114582f..7ef3c8a3fe24ee7d438664eb721d7f2dd2b268e4 100644 (file)
@@ -756,4 +756,4 @@ VirtualEventBase& EventBase::getVirtualEventBase() {
   return *virtualEventBase_;
 }
 
-} // folly
+} // namespace folly
index 2982a6461ac0342b44b4e3604daa4548062b8263..303fd42f809944311bd22240250c15355457bb76 100644 (file)
@@ -779,4 +779,4 @@ bool EventBase::runImmediatelyOrRunInEventBaseThreadAndWait(
   return runImmediatelyOrRunInEventBaseThreadAndWait([=] { fn(arg); });
 }
 
-} // folly
+} // namespace folly
index 7efc8af08c3f4c52b3eb0557b0e4bfc93104e140..26c3ac56a7a103c7f50a4782a7eb5df80832d515 100644 (file)
@@ -87,4 +87,4 @@ EventBase * EventBaseManager::getEventBase() const {
   return info->eventBase;
 }
 
-} // folly
+} // namespace folly
index 31de20155fc2d25a70dcf3a746b96d79c7eabb85..d4f91e51d157377a540760312ec544b758f616e6 100644 (file)
@@ -158,4 +158,4 @@ class EventBaseManager {
   std::shared_ptr<folly::EventBaseObserver> observer_;
 };
 
-} // folly
+} // namespace folly
index 72a374002a630b75241b8a07cfcd02d2c7666589..66f6e2462e0660c11baf8b4f65af67a7e6985775 100644 (file)
@@ -178,4 +178,4 @@ bool EventHandler::isPending() const {
   return false;
 }
 
-} // folly
+} // namespace folly
index 80c405e5469d5d4298fbc893b04bc992548f45ff..59be7bf9a7aacd407960c3e7810f9083ca34fe34 100644 (file)
@@ -185,4 +185,4 @@ class EventHandler : private boost::noncopyable {
   EventBase* eventBase_;
 };
 
-} // folly
+} // namespace folly
index fef7990d0931f618ac1c922bf36a6162643eb0a8..2a1e6135e112dd9a35cfd4bc5dac942174d5a398 100644 (file)
@@ -56,4 +56,4 @@ class EventUtil {
   }
 };
 
-} // folly
+} // namespace folly
index 8354d4ca989bc60635486ff627fba3f0e41ad431..96ad8afc4a627bca3fc07e6b3984817fc929d302 100644 (file)
@@ -314,4 +314,4 @@ int64_t HHWheelTimer::calcNextTick() {
   }
 }
 
-} // folly
+} // namespace folly
index 89cf1f17dd8cff128f039ebb2df1d05d856e1755..d670e3baf069f8168bc6dcb38c679aee88bfc991 100644 (file)
@@ -299,4 +299,4 @@ class HHWheelTimer : private folly::AsyncTimeout,
   }
 };
 
-} // folly
+} // namespace folly
index e57ef66172077cb08fe7196652f7a1ad4c7f7f16..048d0f9bb3dddcfd12f7ff4eee89c9925943c69e 100644 (file)
@@ -884,4 +884,4 @@ NotificationQueue<MessageT>::Consumer::make(TCallback&& callback) {
           std::forward<TCallback>(callback)));
 }
 
-} // folly
+} // namespace folly
index 501245ba4c05c5a5858d1142f3fc4ec6023a67b8..29b202f825dc80ab7063f05b30f39577e88e0ed6 100644 (file)
@@ -699,4 +699,4 @@ operator<<(std::ostream& os, const PasswordCollector& collector) {
   return os;
 }
 
-} // folly
+} // namespace folly
index 73cfedf2e80a18eae5fd514f52184b92150723c4..ded583f52fa7930c5543ef4b497d95e21f079130 100644 (file)
@@ -553,4 +553,4 @@ std::ostream& operator<<(
     std::ostream& os,
     const folly::PasswordCollector& collector);
 
-} // folly
+} // namespace folly
index 88e042e61944e6ebdbf05beedd1b732e5749d0cf..bada56c345a589f94150c996c982599ac5b36bb4 100644 (file)
@@ -74,5 +74,5 @@ void SSLCommonOptions::setClientOptions(SSLContext& ctx) {
   setSignatureAlgorithms<SSLCommonOptions>(ctx);
 }
 
-} // ssl
-} // folly
+} // namespace ssl
+} // namespace folly
index 22ab52edb3c7b0cf6428ea5d61dfc54f09593d90..963cad27af76d5d99780390754b27e7eb34516a5 100644 (file)
@@ -62,5 +62,5 @@ void setSignatureAlgorithms(SSLContext& ctx) {
   }
 }
 
-} // ssl
-} // folly
+} // namespace ssl
+} // namespace folly
index 96af4c2c9986a7a593a25eb83a799eac11151142..f331f08f31a2dc417759e75b7c0de39d03c43e09 100644 (file)
@@ -103,4 +103,4 @@ class TimeoutManager {
   std::unique_ptr<CobTimeouts> cobTimeouts_;
 };
 
-} // folly
+} // namespace folly
index 91e114a03024e30569d2bf59c54da54f73456615..832818ebb9b966e1c7a88147de09057a48e14d2c 100644 (file)
@@ -310,8 +310,8 @@ void OpenSSLUtils::setBioFd(BIO* b, int fd, int flags) {
   BIO_set_fd(b, sock, flags);
 }
 
-} // ssl
-} // folly
+} // namespace ssl
+} // namespace folly
 
 namespace {
 #ifdef OPENSSL_IS_BORINGSSL
index 8914315a62f40e4ad876720e2781b8daf05eca08..c92cb602c0b690ef06059ca33ed1eea65608e78f 100644 (file)
@@ -122,5 +122,5 @@ class OpenSSLUtils {
   static void setBioFd(BIO* b, int fd, int flags);
 };
 
-} // ssl
-} // folly
+} // namespace ssl
+} // namespace folly
index ca0a24b0afda75fc9603d0e85a33d1ce971b9360..21e8efefddf55d61ca9aabf0ac1189d10c5b0226 100644 (file)
@@ -88,5 +88,5 @@ struct ClientHelloInfo {
   std::vector<uint16_t> clientHelloSupportedVersions_;
 };
 
-} // ssl
-} // folly
+} // namespace ssl
+} // namespace folly
index 1259e54750c1ed61ccc17f92961f9b179f6fe6e6..ce69a236ba1d225a4994937678196b49f20658c7 100644 (file)
@@ -124,8 +124,7 @@ std::unique_ptr<folly::IOBuf> getBuf(const std::string& data) {
   return buf;
 }
 
-} // anonymous namespace
-
+} // namespace
 
 TEST_F(AsyncPipeTest, simple) {
   for (int pass = 0; pass < 2; ++pass) {
index a8e4e4482bdf96dda536dbe5a460cc4013f3520c..e09ca7fbd79567dafe3c453adf8b6978f0b7b867 100644 (file)
@@ -2188,5 +2188,5 @@ struct Initializer {
   }
 };
 Initializer initializer;
-} // anonymous
+} // namespace
 #endif
index 9b214785c69b6981e8710ef871e7ff892eba1a77..eb5490c9371c5046ac6da9e27983372de6921c1e 100644 (file)
@@ -190,8 +190,7 @@ TEST(AsyncSSLSocketTest2, AttachDetachSSLContext) {
   EXPECT_TRUE(f.within(std::chrono::seconds(3)).get());
 }
 
-
-}  // folly
+} // namespace folly
 
 int main(int argc, char *argv[]) {
 #ifdef SIGPIPE
index 8f2dd830a491196a8902de60c7c250a159318aa6..629d67864117f5e733fa584cdbb977b0fca312cb 100644 (file)
@@ -89,4 +89,4 @@ TEST(AsyncTimeout, cancel_schedule) {
   EXPECT_NE(expected, value);
 }
 
-} // namespace folly {
+} // namespace folly
index 656337a57ea3f834ffc76f04627b7b4a4dc74ab0..0f536fa11c1813410cb576bdb1e61f437c99eb03 100644 (file)
@@ -97,7 +97,7 @@ TEST(SSLContextInitializationTest, SSLContextLocksSetAfterInitIgnored) {
       ::testing::ExitedWithCode(0),
       "SSLContextLocksSetAfterInitIgnored passed");
 }
-} // folly
+} // namespace folly
 
 int main(int argc, char* argv[]) {
 #ifdef SIGPIPE
index a363e102dbbc29373eec76318891414deb7542a9..92145ec9fd7ef69bcc9e6d1239ee3a3171713d91 100644 (file)
@@ -30,7 +30,7 @@ namespace {
 // allowing the resulting methods to be inline-able.  If you think that
 // seems hacky keep reading...
 struct FollyMemoryDetailTranslationUnitTag {};
-} // anon namespace
+} // namespace
 namespace folly {
 namespace detail {
 void unsafeStringSetLargerSize(std::string& s, std::size_t n);
index a9e370fb7bff9f6be3015e542667ba5e08d66fee..7bd8f2a481815970f6e1dd0b443c8294ff0a14e5 100644 (file)
@@ -55,5 +55,5 @@ class NotificationQueueExecutor : public folly::DrivableExecutor {
   folly::NotificationQueue<Func>::SimpleConsumer consumer_{queue_};
 }; // NotificationQueueExecutor
 
-} // python
-} // folly
+} // namespace python
+} // namespace folly
index 4f814f0f3ca2e4616de28bb25bdad77ac35c64e2..dbf0e9b17cccfd763fa78c54a9adea4a092b4b22 100644 (file)
@@ -75,5 +75,5 @@ void bridgeFuture(
       getExecutor(), std::move(futureFrom), std::move(callback), userData);
 }
 
-} // python
-} // folly
+} // namespace python
+} // namespace folly
index 0e148ef7928732a92f567b6040295b80eb7d0a87..f28f4dfbb1e5e0cdc289392b0bdf70815ab6c27e 100644 (file)
@@ -74,7 +74,7 @@ struct NoHeap;
 
 //////////////////////////////////////////////////////////////////////
 
-} // small_vector_policy
+} // namespace small_vector_policy
 
 //////////////////////////////////////////////////////////////////////
 
@@ -1143,8 +1143,8 @@ struct IndexableTraits<small_vector<T, M, A, B, C>>
   : public IndexableTraitsSeq<small_vector<T, M, A, B, C>> {
 };
 
-}  // namespace detail
+} // namespace detail
 
-}  // namespace folly
+} // namespace folly
 
 FOLLY_POP_WARNING
index c6e8ba35ce57c9667aab482cc2d0651ec1126ae4..91c41b063e83f361725a08d1eca26289fe159a20 100644 (file)
@@ -92,5 +92,5 @@ bool isLockDisabled(int lockId) {
   return detail::isSSLLockDisabled(lockId);
 }
 
-} // ssl
-} // folly
+} // namespace ssl
+} // namespace folly
index 98a4fab9bfe2c13fd10d04a4274bd5c19efbffdb..e1f9273a9ce25afd94ab2cfb421ceab4f589d208 100644 (file)
@@ -82,5 +82,5 @@ bool isLockDisabled(int lockId);
 
 void randomize();
 
-} // ssl
-} // folly
+} // namespace ssl
+} // namespace folly
index d45daa6d2aef34e5b2638df47883f3249baa1fe5..45c6d388062c399fc9a2685f22271042eb477cba 100644 (file)
@@ -196,5 +196,5 @@ std::unique_ptr<IOBuf> OpenSSLCertUtils::derEncode(X509& x509) {
   buf->append(len);
   return buf;
 }
-} // ssl
-} // folly
+} // namespace ssl
+} // namespace folly
index 0e03c1f718ed39d0a37a0887078f84e55bf56af8..dfbbe5a56b1e02a3f7d20e55ac9a7eb657ffcc88 100644 (file)
@@ -28,5 +28,5 @@ enum class LockType { MUTEX, SPINLOCK, SHAREDMUTEX, NONE };
  */
 using LockTypeMapping = std::map<int, LockType>;
 
-} // ssl
-} // folly
+} // namespace ssl
+} // namespace folly
index c9402b357ce1351dfa897fbcf96c86f2a9da157f..05b551a7ecc51c2cd453b892008c16d91b40aadd 100644 (file)
@@ -106,7 +106,7 @@ struct SSLLock {
   std::mutex mutex;
   SharedMutex sharedMutex;
 };
-} // end anonymous namespace
+} // namespace
 
 // Statics are unsafe in environments that call exit().
 // If one thread calls exit() while another thread is
@@ -173,6 +173,6 @@ void cleanupThreadingLocks() {
   locks().reset();
 }
 
-} // detail
-} // ssl
-} // folly
+} // namespace detail
+} // namespace ssl
+} // namespace folly
index d30d79345a088e3808b453cdddb2b078c76f59d9..f20f56cf176f4f93d4955affd0543a1f11a23eda 100644 (file)
@@ -525,4 +525,4 @@ void BucketedTimeSeries<VT, CT>::forEachBucket(
       });
 }
 
-} // folly
+} // namespace folly
index 47adc6a9a5f8346a2565e201603c5dcfd86d3fc8..02c7a893c46fd6b50897ce4a983ea3487f9dbc4f 100644 (file)
@@ -487,4 +487,4 @@ class BucketedTimeSeries {
   std::vector<Bucket> buckets_; // actual buckets of values
 };
 
-} // folly
+} // namespace folly
index e126417bc819f8751734f6366ee74855a46d12d8..bb5af62b190b0b2fb09612be85ad017391094be7 100644 (file)
@@ -243,7 +243,7 @@ T HistogramBuckets<T, BucketType>::getPercentileEstimate(
   }
 }
 
-} // detail
+} // namespace detail
 
 template <typename T>
 std::string Histogram<T>::debugString() const {
@@ -284,4 +284,4 @@ void Histogram<T>::toTSV(std::ostream& out, bool skipEmptyBuckets) const {
   }
 }
 
-} // folly
+} // namespace folly
index 6f54a874990d542b68ec72b9371b828cf07a4793..c138005e24f6d8ab51bc28feeaf539035808489d 100644 (file)
@@ -52,4 +52,4 @@ detail::HistogramBuckets<int64_t, Histogram<int64_t>::Bucket>::
     computeTotalCount<Histogram<int64_t>::CountFromBucket>(
         Histogram<int64_t>::CountFromBucket countFromBucket) const;
 
-} // folly
+} // namespace folly
index 688f479a4e0ce796c8c48a108921c60d5f210789..0be9e160aaec3f83fc153d7b9c88301d207a1dfe 100644 (file)
@@ -226,7 +226,7 @@ class HistogramBuckets {
   std::vector<BucketType> buckets_;
 };
 
-} // detail
+} // namespace detail
 
 /*
  * A basic histogram class.
@@ -478,4 +478,4 @@ class Histogram {
   detail::HistogramBuckets<ValueType, Bucket> buckets_;
 };
 
-} // folly
+} // namespace folly
index d862bb6bd641297cd0b96cc9d9e5b2944192bc64..71154c00ec3668477dacebda9d409f55db33dce8 100644 (file)
@@ -437,4 +437,4 @@ class MultiLevelTimeSeries {
   uint64_t cachedCount_;
 };
 
-} // folly
+} // namespace folly
index 7dfdc81d6365e590c64c17cbadadb098329733c8..3a48a215540a3c87514ceef2a4ffbdc0a3519908 100644 (file)
@@ -167,5 +167,5 @@ void run_multi_producer_tests() {
   DSched::join(cons);
 }
 
-} // namespace test {
-} // namespace folly {
+} // namespace test
+} // namespace folly
index 49001d86d50647eff044cf7183bca567da453294..23083364b11a685628ff473e035c29330b5cf085 100644 (file)
@@ -55,7 +55,7 @@ void checkRange(INT exp, IT begin, IT end) {
   }
 }
 
-}  // namespace
+} // namespace
 
 TEST(BitIterator, Simple) {
   std::vector<int> v;
index af6945f6101be8fec00d2e3c175be459609c3ba2..810241e1945890bf12153390b3dfd0f6e22db96a 100644 (file)
@@ -63,7 +63,7 @@ void testFLS() {
   }
 }
 
-}  // namespace
+} // namespace
 
 TEST(Bits, FindFirstSet) {
   testFFS<char>();
index 87f416b7cd63474862e127d2735da2a37e9b160c..35651eb5a424a53743a46e6f42b792be83276465 100644 (file)
@@ -492,7 +492,7 @@ TEST(ConcurrentSkipList, NonTrivialDeallocationWithSysArena) {
   TestNonTrivialDeallocation(list);
 }
 
-}  // namespace
+} // namespace
 
 int main(int argc, char* argv[]) {
   testing::InitGoogleTest(&argc, argv);
index 5cbe1345cb0c5d2f9b087f28ae267a782e211878..887af44c7169e84dbc9916feeda56465155f4b4f 100644 (file)
@@ -23,7 +23,7 @@ using folly::demangle;
 namespace folly_test {
 struct ThisIsAVeryLongStructureName {
 };
-}  // namespace folly_test
+} // namespace folly_test
 
 #if FOLLY_HAVE_CPLUS_DEMANGLE_V3_CALLBACK
 TEST(Demangle, demangle) {
index 8f1f428311c8f0680ef2e06684deb30a1dfd1be0..0f243d369cddc5c12121c1b41821ebbcaa23ac36 100644 (file)
@@ -482,8 +482,8 @@ struct DeterministicMutex {
     m.unlock();
   }
 };
-}
-} // namespace folly::test
+} // namespace test
+} // namespace folly
 
 /* Specialization declarations */
 
@@ -499,9 +499,9 @@ FutexResult Futex<test::DeterministicAtomic>::futexWaitImpl(
     std::chrono::time_point<std::chrono::system_clock>* absSystemTime,
     std::chrono::time_point<std::chrono::steady_clock>* absSteadyTime,
     uint32_t waitMask);
-}
+} // namespace detail
 
 template <>
 Getcpu::Func AccessSpreader<test::DeterministicAtomic>::pickGetcpuFunc();
 
-} // namespace folly::detail
+} // namespace folly
index f494ad37618ca76fae9b139c9a2066ee49577ee2..0d023df781e1ac9161eac12501fc5c24ddebfa3f 100644 (file)
@@ -104,7 +104,7 @@ TEST(DeterministicSchedule, buggyAdd) {
       }
     }
   } // for bug
-} // TEST
+}
 
 /// Test DSched support for auxiliary data and global invariants
 ///
index f6f00f38b84e9e320825a7a21ebee9b5f624dc64..e182196d36829297beab1bc6f2a09b547d6d2068 100644 (file)
@@ -458,7 +458,7 @@ class TestException : public std::exception { };
 void testEW(const exception_wrapper& ew) {
   EXPECT_THROW(ew.throw_exception(), TestException);
 }
-}  // namespace
+} // namespace
 
 TEST(ExceptionWrapper, implicitConstruction) {
   // Try with both lvalue and rvalue references
index 92f32eb362d6646c9da2cb1cd2029a663569da3a..0d0c20fdd5219c4dc60823d963cdb44efc4a957c 100644 (file)
@@ -1419,7 +1419,7 @@ struct TestStructStringAllocator : std::allocator<char> {
   }
 };
 
-}  // anon namespace
+} // namespace
 
 TEST(FBStringCtorTest, DefaultInitStructDefaultAlloc) {
   TestStructDefaultAllocator t1 { };
index 24342671a3282346b9ef75e055415b5136166553..1ee680c1c5b76ea19374f7857b2d9339b6c7d0e4 100644 (file)
@@ -32,7 +32,7 @@ void expectOK(ssize_t r) {
   int savedErrno = errno;
   EXPECT_LE(0, r) << ": errno=" << errnoStr(savedErrno);
 }
-}  // namespace
+} // namespace
 
 TEST(File, Simple) {
   // Open a file, ensure it's indeed open for reading
index dee3e2a50dd1e51e17268603d7d0838bc6d5adaf..8b6f74374e23f7e72caab7c79d642e4778f4d487 100644 (file)
@@ -128,7 +128,7 @@ ssize_t Reader::operator()(int fd, const iovec* iov, int count, off_t offset) {
   return operator()(fd, iov, count);
 }
 
-}  // namespace
+} // namespace
 
 class FileUtilTest : public ::testing::Test {
  protected:
index cd02a111e5a9c1adbcd481bf006a0f3b0a567bf9..012d3ddf124c99c239df757762cd72ad179f8df1 100644 (file)
@@ -117,8 +117,7 @@ void fastFingerprintTerms128(int num_iterations, int num_ids) {
   fingerprintTerms<Fingerprint<128> >(num_iterations, num_ids);
 }
 
-
-}  // namespace
+} // namespace
 
 // Only benchmark one size of slowFingerprint; it's significantly slower
 // than fastFingeprint (as you can see for 64 bits) and it just slows down
index a7477fe10b6ee22850ff08dd162d01b64e70fccb..35b39263130fbf0b7012ef8ce06cb655b206374a 100644 (file)
@@ -96,7 +96,7 @@ void testFormatSeq() {
   EXPECT_EQ("10 20 0030", svformat("{} {} {:04}", v));
 }
 
-}  // namespace
+} // namespace
 
 TEST(FormatOther, fbvector) {
   testFormatSeq<fbvector<int>>();
index 8315c16dc0549b2eeca7d93f2ce295dc1e196f81..535c6ceb463b0a501971e7b468aa1be488432e6c 100644 (file)
@@ -333,7 +333,7 @@ struct KeyValue {
   int value;
 };
 
-}  // namespace
+} // namespace
 
 namespace folly {
 
index b224674d78ebce8397d520281d9a89cdcb0d95f6..95a688f24822a6aaaeb54ab311642270c9d5275d 100644 (file)
@@ -119,7 +119,7 @@ void testGroupVarint64(uint64_t a, uint64_t b, uint64_t c, uint64_t d,
   EXPECT_EQ(e, fe);
 }
 
-}  // namespace
+} // namespace
 
 TEST(GroupVarint, GroupVarint32) {
   EXPECT_EQ(0, GroupVarint32::maxSize(0));
index 070cf78f68ab27967cca065a7ff414bd776eca8c..dd03242bed071a7ffd7acc1330027f3c97692175 100644 (file)
@@ -129,7 +129,7 @@ void checkTWang(uint64_t r) {
   uint64_t result = twang_mix64(r);
   EXPECT_EQ(r, twang_unmix64(result));
 }
-}  // namespace
+} // namespace
 
 TEST(Hash, TWang_Unmix64) {
   // We'll try (1 << i), (1 << i) + 1, (1 << i) - 1
@@ -167,7 +167,7 @@ void checkJenkins(uint32_t r) {
   uint32_t result = jenkins_rev_mix32(r);
   EXPECT_EQ(r, jenkins_rev_unmix32(result));
 }
-}  // namespace
+} // namespace
 
 TEST(Hash, Jenkins_Rev_Unmix32) {
   // We'll try (1 << i), (1 << i) + 1, (1 << i) - 1
index af37fc4dc9e4e21a048ee16c738efbb97193ef8e..958f97c31cb0d3ff77c680e7077d328cc531e677 100644 (file)
@@ -104,7 +104,7 @@ void writeStringToFileOrDie(const std::string& str, int fd) {
   } while (r != 0 && count);
 }
 
-}  // anonymous namespace
+} // namespace
 
 TEST(MemoryMapping, Simple) {
   File f = File::temporary();
index 697b2dec4dc1f46736b1d667014bc7535e9775c5..d916ed9bd8e137bf4ba77582416a40041234bed9 100644 (file)
@@ -98,5 +98,5 @@ TEST(Overload, Pattern) {
   EXPECT_FALSE(variant_match(two, is_one_copy));
   EXPECT_FALSE(variant_match(two, is_one_const_copy));
 }
-}
-} // folly::test
+} // namespace test
+} // namespace folly
index ec15a1cceff788cb4716a559a82949d781ea91da..228b3b13a8df6f00087248764cf16cf9f92c0594 100644 (file)
@@ -113,7 +113,7 @@ void initDelims(int len) {
   }
 }
 
-}  // anonymous namespace
+} // namespace
 
 BENCHMARK(FindSingleCharMemchr, n) {
   StringPiece haystack(str);
index 6ab885095bcd1ebf8b6ca26836375d52d83b7381..9e29ddaa68df8fbbbf77ef236716b807d67d9238 100644 (file)
@@ -70,7 +70,7 @@ struct OddA {
 struct Indestructible {
   ~Indestructible() = delete;
 };
-} // anonymous namespace
+} // namespace
 
 template <typename T>
 struct ReplaceableStaticAttributeTest : Test {};
index 67f88f1a711fdb1dad0ab2b2d6209b5f674d8f94..c28fb225ff8c0d6096f2fd0f49c1570ebd00c350 100644 (file)
@@ -518,7 +518,7 @@ class TestEagerInitParallelExecutor : public folly::Executor {
   std::vector<std::shared_ptr<std::thread>> threads_;
   std::atomic<size_t> counter_ {0};
 };
-}  // namespace
+} // namespace
 
 namespace {
 struct EagerInitParallelTag {};
index 1f53d76f33f447c557649d3237afec08ae751f52..a924364df757d41aeaf5c6839692407a5efa3461 100644 (file)
@@ -134,7 +134,7 @@ void trylockTest() {
   EXPECT_GE(state.failed + 1, state.obtained);
 }
 
-} // unnamed namespace
+} // namespace
 
 TEST(SpinLock, Correctness) {
   correctnessTest<folly::SpinLock>();
index e95a6f70d2d43e43901c7253cdbc0915f25eb6eb..e9d560475f0a9e4a3698eaaac770d206b6733452 100644 (file)
@@ -224,7 +224,7 @@ void expectPrintable(StringPiece s) {
     EXPECT_GE(127, c);
   }
 }
-}  // namespace
+} // namespace
 
 TEST(Escape, uriEscapeAllCombinations) {
   char c[3];
@@ -252,7 +252,7 @@ bool isHex(int v) {
           (v >= 'A' && v <= 'F') ||
           (v >= 'a' && v <= 'f'));
 }
-}  // namespace
+} // namespace
 
 TEST(Escape, uriUnescapePercentDecoding) {
   char c[4] = {'%', '\0', '\0', '\0'};
@@ -283,7 +283,7 @@ double pow2(int exponent) {
   return double(int64_t(1) << exponent);
 }
 
-}  // namespace
+} // namespace
 struct PrettyTestCase{
   std::string prettyString;
   double realValue;
@@ -1119,7 +1119,7 @@ void testToLowerAscii(Range<const char*> src) {
   }
 }
 
-} // anon namespace
+} // namespace
 
 TEST(String, toLowerAsciiAligned) {
   static const size_t kSize = 256;
index 43622cd3c8c63f738cdc9955e6a7dedc72ef0ba0..8a37f9284573df815267d87910200dfc06d182a7 100644 (file)
@@ -457,7 +457,7 @@ bool readToString(int fd, std::string& buf, size_t maxSize) {
   return (n == 0);
 }
 
-}  // namespace
+} // namespace
 
 TEST(CommunicateSubprocessTest, Chatty) {
   checkFdLeak([] {
index 100cc81f701e9c068a80a798138d5d3b5916132c..6c9a17eeb6d776269331f145ab4b2192d7ee627e 100644 (file)
@@ -39,7 +39,7 @@ DEFINE_bool(child, false, "");
 
 namespace {
 constexpr int kSignal = SIGUSR1;
-}  // namespace
+} // namespace
 
 void runChild(const char* file) {
   // Block SIGUSR1 so it's queued
index 8471e939841fcf1a5e7330ff0266c230eb5fc6fd..1d24c77a621e2e68647d429916e127c741a568a1 100644 (file)
@@ -89,7 +89,7 @@ void ArenaTester::merge(ArenaTester&& other) {
   other.areas_.clear();
 }
 
-}  // namespace
+} // namespace
 
 TEST(ThreadCachedArena, BlockSize) {
   static const size_t alignment = folly::max_align_v;
@@ -241,8 +241,7 @@ BENCHMARK(bmMArena, iters) {
 
 BENCHMARK_DRAW_LINE()
 
-}  // namespace
-
+} // namespace
 
 // Benchmark                               Iters   Total t    t/iter iter/sec
 // ----------------------------------------------------------------------------
index fc9bdefb1a15ef2174f7d1a6ab736fa884846ceb..90d9f63ce4534fd22ef0516c86d3db5684de00d0 100644 (file)
@@ -345,7 +345,7 @@ struct Tag {};
 struct Foo {
   folly::ThreadLocal<int, Tag> tl;
 };
-}  // namespace
+} // namespace
 
 TEST(ThreadLocal, Movable1) {
   Foo a;
@@ -415,7 +415,7 @@ class FillObject {
   uint64_t data_[kFillObjectSize];
 };
 
-}  // namespace
+} // namespace
 
 TEST(ThreadLocal, Stress) {
   static constexpr size_t numFillObjects = 250;
@@ -473,7 +473,7 @@ int totalValue() {
   return value;
 }
 
-}  // namespace
+} // namespace
 
 #ifdef FOLLY_HAVE_PTHREAD_ATFORK
 TEST(ThreadLocal, Fork) {
index 5c44537bffedfe7208609f5b1ba19e2cdf0ed29d..3d6fae3e2bb380abcb8b0c010e44480dd394863e 100644 (file)
@@ -24,4 +24,4 @@ namespace folly {
 struct TokenBucketTest :
     public ::testing::TestWithParam<std::pair<double,double> > {};
 
-} // folly
+} // namespace folly
index 8b8a1856cbf80c3181f0bb5540fbcf173dc86901..6f2b1bd0e40b46623d18286c98c5794213135e65 100644 (file)
@@ -183,8 +183,7 @@ BENCHMARK(VarintDecoding, iters) {
   }
 }
 
-}  // namespace
-
+} // namespace
 }}  // namespaces
 
 int main(int argc, char *argv[]) {