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