Sort #include lines
authorYedidya Feldblum <yfeldblum@fb.com>
Thu, 13 Jul 2017 02:53:53 +0000 (19:53 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 13 Jul 2017 03:09:23 +0000 (20:09 -0700)
Summary: [Folly] Sort `#include` lines, as required by `clang-format`.

Reviewed By: igorsugak, Orvid

Differential Revision: D5405153

fbshipit-source-id: 3bb1c2b84271bcf7a195e07680777dbfdd499823

180 files changed:
folly/Arena.h
folly/AtomicHashMap.h
folly/AtomicUnorderedMap.h
folly/Benchmark.cpp
folly/Bits.h
folly/ConcurrentSkipList-inl.h
folly/ConcurrentSkipList.h
folly/CpuId.h
folly/Demangle.cpp
folly/DiscriminatedPtr.h
folly/DynamicConverter.h
folly/EvictingCacheMap.h
folly/FileUtil.h
folly/FormatArg.h
folly/GroupVarint.h
folly/IPAddress.h
folly/Lazy.h
folly/LifoSem.h
folly/Logging.h
folly/MPMCQueue.h
folly/MemoryMapping.h
folly/MicroLock.h
folly/MicroSpinLock.h
folly/PackedSyncPtr.h
folly/Padded.h
folly/PicoSpinLock.h
folly/RWSpinLock.h
folly/Random.cpp
folly/Random.h
folly/SingletonThreadLocal.h
folly/SocketAddress.cpp
folly/SparseByteSet.h
folly/String-inl.h
folly/String.cpp
folly/String.h
folly/Subprocess.cpp
folly/Subprocess.h
folly/TimeoutQueue.h
folly/Traits.h
folly/Uri.cpp
folly/build/GenerateFingerprintTables.cpp
folly/detail/AtomicHashUtils.h
folly/detail/AtomicUnorderedMapUtils.h
folly/detail/BitIteratorDetail.h
folly/detail/DiscriminatedPtrDetail.h
folly/detail/Futex.h
folly/detail/IPAddress.h
folly/detail/MemoryIdler.h
folly/detail/RangeCommon.cpp
folly/detail/RangeCommon.h
folly/detail/RangeSse42.cpp
folly/detail/RangeSse42.h
folly/detail/SlowFingerprint.h
folly/dynamic-inl.h
folly/experimental/Bits.h
folly/experimental/DynamicParser-inl.h
folly/experimental/DynamicParser.h
folly/experimental/JSONSchema.cpp
folly/experimental/JSONSchema.h
folly/experimental/LockFreeRingBuffer.h
folly/experimental/NestedCommandLineApp.cpp
folly/experimental/StringKeyedCommon.h
folly/experimental/StringKeyedMap.h
folly/experimental/StringKeyedSet.h
folly/experimental/TestUtil.cpp
folly/experimental/TestUtil.h
folly/experimental/bser/Dump.cpp
folly/experimental/bser/Load.cpp
folly/experimental/bser/test/BserTest.cpp
folly/experimental/hazptr/test/HazptrTest.cpp
folly/experimental/io/AsyncIO.h
folly/experimental/io/HugePages.cpp
folly/experimental/io/test/AsyncIOTest.cpp
folly/experimental/symbolizer/Dwarf.h
folly/experimental/symbolizer/Elf.h
folly/experimental/symbolizer/ElfCache.h
folly/experimental/symbolizer/Symbolizer.cpp
folly/experimental/symbolizer/Symbolizer.h
folly/experimental/symbolizer/test/SignalHandlerTest.cpp
folly/experimental/test/BitsBenchmark.cpp
folly/experimental/test/CodingTestUtils.h
folly/experimental/test/EventCountTest.cpp
folly/experimental/test/FlatCombiningPriorityQueueTest.cpp
folly/experimental/test/LockFreeRingBufferTest.cpp
folly/experimental/test/NestedCommandLineAppExample.cpp
folly/experimental/test/ProgramOptionsTestHelper.cpp
folly/experimental/test/ReadMostlySharedPtrTest.cpp
folly/futures/Future-inl.h
folly/futures/Future.cpp
folly/futures/ManualExecutor.h
folly/futures/SharedPromise.h
folly/futures/Timekeeper.h
folly/futures/detail/FSM.h
folly/futures/exercises/01-Values.cpp
folly/futures/exercises/Koan.h
folly/futures/test/CollectTest.cpp
folly/futures/test/ExecutorTest.cpp
folly/futures/test/FutureTest.cpp
folly/futures/test/HeaderCompileTest.cpp
folly/futures/test/InterruptTest.cpp
folly/futures/test/ViaTest.cpp
folly/futures/test/WaitTest.cpp
folly/gen/test/BaseBenchmark.cpp
folly/gen/test/CombineTest.cpp
folly/gen/test/FileBenchmark.cpp
folly/gen/test/ParallelBenchmark.cpp
folly/gen/test/ParallelMapBenchmark.cpp
folly/gen/test/ParallelTest.cpp
folly/gen/test/StringBenchmark.cpp
folly/io/Compression.cpp
folly/io/Cursor.cpp
folly/io/Cursor.h
folly/io/IOBuf.cpp
folly/io/IOBuf.h
folly/io/RecordIO.h
folly/io/async/AsyncPipe.h
folly/io/async/AsyncSSLSocket.h
folly/io/async/AsyncSocket.h
folly/io/async/AsyncTransport.h
folly/io/async/AsyncUDPServerSocket.h
folly/io/async/AsyncUDPSocket.cpp
folly/io/async/AsyncUDPSocket.h
folly/io/async/EventBase.h
folly/io/async/EventBaseManager.h
folly/io/async/EventFDWrapper.h
folly/io/async/EventHandler.h
folly/io/async/NotificationQueue.h
folly/io/async/SSLContext.h
folly/io/async/TimeoutManager.h
folly/io/async/ssl/OpenSSLUtils.h
folly/io/async/test/AsyncPipeTest.cpp
folly/io/async/test/AsyncSSLSocketTest.h
folly/io/async/test/AsyncSocketTest.cpp
folly/io/async/test/AsyncTransportTest.cpp
folly/io/async/test/AsyncUDPSocketTest.cpp
folly/io/async/test/HHWheelTimerTest.cpp
folly/io/async/test/NotificationQueueTest.cpp
folly/io/async/test/UndelayedDestruction.h
folly/io/async/test/Util.h
folly/io/test/IOBufQueueTest.cpp
folly/small_vector.h
folly/test/AHMIntStressTest.cpp
folly/test/ArenaSmartPtrTest.cpp
folly/test/AtomicHashArrayTest.cpp
folly/test/AtomicHashMapTest.cpp
folly/test/BatonTest.cpp
folly/test/BatonTestHelpers.h
folly/test/BitIteratorTest.cpp
folly/test/ChecksumTest.cpp
folly/test/ClockGettimeWrappersTest.cpp
folly/test/ConcurrentSkipListTest.cpp
folly/test/ExceptionWrapperTest.cpp
folly/test/FBStringBenchmark.cpp
folly/test/FBStringTest.cpp
folly/test/FBVectorBenchmark.cpp
folly/test/FBVectorTest.cpp
folly/test/FileLockTest.cpp
folly/test/FingerprintBenchmark.cpp
folly/test/FingerprintTest.cpp
folly/test/ForeachTest.cpp
folly/test/FutexTest.cpp
folly/test/GroupVarintTest.cpp
folly/test/LazyTest.cpp
folly/test/MemoryTest.cpp
folly/test/ProducerConsumerQueueBenchmark.cpp
folly/test/RWSpinLockTest.cpp
folly/test/RandomBenchmark.cpp
folly/test/RandomTest.cpp
folly/test/RangeFindBenchmark.cpp
folly/test/RangeTest.cpp
folly/test/SingletonTest.cpp
folly/test/SingletonTestGlobal.cpp
folly/test/SmallLocksTest.cpp
folly/test/SpookyHashV1Test.cpp
folly/test/SpookyHashV2Test.cpp
folly/test/SubprocessTestParentDeathHelper.cpp
folly/test/SynchronizedTest.cpp
folly/test/ThreadCachedArenaTest.cpp
folly/test/ThreadLocalTest.cpp
folly/test/stl_tests/StlVectorTest.cpp

index f70988f..cf010f3 100644 (file)
@@ -21,6 +21,7 @@
 #include <limits>
 #include <stdexcept>
 #include <utility>
+
 #include <boost/intrusive/slist.hpp>
 
 #include <folly/Conv.h>
index 70d7149..962e9de 100644 (file)
@@ -86,9 +86,9 @@
 #include <boost/noncopyable.hpp>
 #include <boost/type_traits/is_convertible.hpp>
 
-#include <stdexcept>
-#include <functional>
 #include <atomic>
+#include <functional>
+#include <stdexcept>
 
 #include <folly/AtomicHashArray.h>
 #include <folly/Foreach.h>
index 45877e1..3a13aa9 100644 (file)
 #pragma once
 
 #include <atomic>
+#include <cstdint>
 #include <functional>
+#include <limits>
 #include <stdexcept>
 #include <system_error>
 #include <type_traits>
-#include <stdint.h>
+
+#include <boost/type_traits/has_trivial_destructor.hpp>
 
 #include <folly/Bits.h>
 #include <folly/Conv.h>
@@ -31,9 +34,6 @@
 #include <folly/portability/SysMman.h>
 #include <folly/portability/Unistd.h>
 
-#include <boost/type_traits/has_trivial_destructor.hpp>
-#include <limits>
-
 namespace folly {
 
 /// You're probably reading this because you are looking for an
index ecb7a8a..8130646 100644 (file)
 // @author Andrei Alexandrescu (andrei.alexandrescu@fb.com)
 
 #include <folly/Benchmark.h>
-#include <folly/Foreach.h>
-#include <folly/json.h>
-#include <folly/String.h>
 
 #include <algorithm>
-#include <boost/regex.hpp>
 #include <cmath>
+#include <cstring>
 #include <iostream>
 #include <limits>
 #include <utility>
 #include <vector>
-#include <cstring>
+
+#include <boost/regex.hpp>
+
+#include <folly/Foreach.h>
+#include <folly/String.h>
+#include <folly/json.h>
 
 using namespace std;
 
index ade5bbe..940b7bf 100644 (file)
 #define FOLLY_INTRINSIC_CONSTEXPR const
 #endif
 
-#include <folly/Portability.h>
-#include <folly/portability/Builtins.h>
-
-#include <folly/Assume.h>
-#include <folly/detail/BitIteratorDetail.h>
-#include <folly/Likely.h>
-
 #include <cassert>
-#include <cstring>
 #include <cinttypes>
+#include <cstdint>
+#include <cstring>
 #include <iterator>
 #include <limits>
 #include <type_traits>
+
 #include <boost/iterator/iterator_adaptor.hpp>
-#include <stdint.h>
+
+#include <folly/Assume.h>
+#include <folly/Likely.h>
+#include <folly/Portability.h>
+#include <folly/detail/BitIteratorDetail.h>
+#include <folly/portability/Builtins.h>
 
 namespace folly {
 
index 122f21c..61279a9 100644 (file)
@@ -26,6 +26,7 @@
 #include <mutex>
 #include <type_traits>
 #include <vector>
+
 #include <boost/noncopyable.hpp>
 #include <boost/random.hpp>
 #include <boost/type_traits.hpp>
index 8b06f33..a1a694a 100644 (file)
@@ -124,6 +124,7 @@ Sample usage:
 #include <limits>
 #include <memory>
 #include <type_traits>
+
 #include <boost/iterator/iterator_facade.hpp>
 #include <glog/logging.h>
 
index bbd36c2..bcbea19 100644 (file)
@@ -17,6 +17,7 @@
 #pragma once
 
 #include <cstdint>
+
 #include <folly/Portability.h>
 
 #ifdef _MSC_VER
index 7145096..14eb1ad 100644 (file)
 #include <folly/Demangle.h>
 
 #include <algorithm>
-#include <string.h>
+#include <cstring>
 
 #include <folly/Malloc.h>
 #include <folly/portability/Config.h>
 
 #if FOLLY_HAVE_CPLUS_DEMANGLE_V3_CALLBACK
-# include <cxxabi.h>
+#include <cxxabi.h>
 
 // From libiberty
 //
index 0d485f5..0195bea 100644 (file)
@@ -28,7 +28,9 @@
 
 #include <limits>
 #include <stdexcept>
+
 #include <glog/logging.h>
+
 #include <folly/Likely.h>
 #include <folly/Portability.h>
 #include <folly/detail/DiscriminatedPtrDetail.h>
index 5da6271..e73c19c 100644 (file)
 
 #pragma once
 
-#include <folly/dynamic.h>
+#include <iterator>
+#include <type_traits>
+
+#include <boost/iterator/iterator_adaptor.hpp>
+#include <boost/mpl/has_xxx.hpp>
+
+#include <folly/Likely.h>
 #include <folly/Traits.h>
+#include <folly/dynamic.h>
 
 namespace folly {
   template <typename T> T convertTo(const dynamic&);
@@ -39,13 +46,6 @@ namespace folly {
  * See docs/DynamicConverter.md for supported types and customization
  */
 
-
-#include <type_traits>
-#include <iterator>
-#include <boost/iterator/iterator_adaptor.hpp>
-#include <boost/mpl/has_xxx.hpp>
-#include <folly/Likely.h>
-
 namespace folly {
 
 ///////////////////////////////////////////////////////////////////////////////
index 77517f5..d94fac0 100644 (file)
 #include <exception>
 #include <functional>
 
-#include <boost/utility.hpp>
 #include <boost/intrusive/list.hpp>
 #include <boost/intrusive/unordered_set.hpp>
 #include <boost/iterator/iterator_adaptor.hpp>
+#include <boost/utility.hpp>
+
 #include <folly/portability/BitsFunctexcept.h>
 
 namespace folly {
index d3260f9..c27e249 100644 (file)
 
 #pragma once
 
+#include <sys/stat.h>
+#include <sys/types.h>
+
+#include <cassert>
+#include <limits>
+
 #include <folly/Portability.h>
 #include <folly/Range.h>
 #include <folly/ScopeGuard.h>
 #include <folly/portability/SysUio.h>
 #include <folly/portability/Unistd.h>
 
-#include <cassert>
-#include <limits>
-#include <sys/stat.h>
-#include <sys/types.h>
-
 namespace folly {
 
 /**
index 48311e3..fec6e81 100644 (file)
@@ -17,6 +17,7 @@
 #pragma once
 
 #include <stdexcept>
+
 #include <folly/Conv.h>
 #include <folly/Likely.h>
 #include <folly/Portability.h>
index 9652a4d..8a101d5 100644 (file)
 
 #pragma once
 
+#include <cstdint>
+#include <limits>
+
+#include <glog/logging.h>
+
 #if !defined(__GNUC__) && !defined(_MSC_VER)
 #error GroupVarint.h requires GCC or MSVC
 #endif
 #if FOLLY_X64 || defined(__i386__) || FOLLY_PPC64 || FOLLY_A64
 #define HAVE_GROUP_VARINT 1
 
-#include <cstdint>
-#include <limits>
-#include <folly/detail/GroupVarintDetail.h>
 #include <folly/Bits.h>
 #include <folly/Range.h>
+#include <folly/detail/GroupVarintDetail.h>
 #include <folly/portability/Builtins.h>
-#include <glog/logging.h>
 
 #if FOLLY_SSE >= 3
 #include <nmmintrin.h>
index bd6906c..4ed42a9 100644 (file)
 #include <string>
 #include <utility> // std::pair
 
-#include <folly/Range.h>
 #include <folly/IPAddressException.h>
 #include <folly/IPAddressV4.h>
 #include <folly/IPAddressV6.h>
+#include <folly/Range.h>
 #include <folly/detail/IPAddress.h>
 
 namespace folly {
index 786f51c..32723bc 100644 (file)
@@ -16,8 +16,8 @@
 
 #pragma once
 
-#include <utility>
 #include <type_traits>
+#include <utility>
 
 #include <folly/Optional.h>
 
index 9c0404f..aeefdaa 100644 (file)
 
 #pragma once
 
-#include <string.h>
-#include <stdint.h>
-#include <atomic>
 #include <algorithm>
+#include <atomic>
+#include <cstdint>
+#include <cstring>
 #include <memory>
 #include <system_error>
 
index 7017270..106aec3 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <atomic>
 #include <chrono>
+
 #include <glog/logging.h>
 
 #ifndef FB_LOG_EVERY_MS
index 0e92106..6ae222d 100644 (file)
 
 #include <algorithm>
 #include <atomic>
-#include <assert.h>
-#include <boost/noncopyable.hpp>
+#include <cassert>
+#include <cstring>
 #include <limits>
-#include <string.h>
 #include <type_traits>
 
+#include <boost/noncopyable.hpp>
+
 #include <folly/Traits.h>
 #include <folly/concurrency/CacheLocality.h>
 #include <folly/detail/TurnSequencer.h>
index 14ce382..c05bad7 100644 (file)
 
 #pragma once
 
+#include <boost/noncopyable.hpp>
+#include <glog/logging.h>
+
 #include <folly/File.h>
 #include <folly/Range.h>
-#include <glog/logging.h>
-#include <boost/noncopyable.hpp>
 
 namespace folly {
 
index 511d06f..c358814 100644 (file)
 
 #pragma once
 
-#include <assert.h>
+#include <cassert>
 #include <climits>
-#include <stdint.h>
-#include <folly/detail/Futex.h>
+#include <cstdint>
+
 #include <folly/Portability.h>
+#include <folly/detail/Futex.h>
 
 #if defined(__clang__)
 #define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
index 0453b35..737ac70 100644 (file)
  */
 
 #include <array>
+#include <atomic>
 #include <cinttypes>
-#include <type_traits>
-#include <boost/noncopyable.hpp>
 #include <cstdlib>
 #include <mutex>
-#include <atomic>
+#include <type_traits>
 
+#include <boost/noncopyable.hpp>
 #include <glog/logging.h>
-#include <folly/detail/Sleeper.h>
+
 #include <folly/Portability.h>
+#include <folly/detail/Sleeper.h>
 
 namespace folly {
 
index e11588e..692fbf9 100644 (file)
 
 #pragma once
 
+#include <type_traits>
+
+#include <glog/logging.h>
+
 #include <folly/Portability.h>
+#include <folly/SmallLocks.h>
 
 #if !FOLLY_X64 && !FOLLY_PPC64 && !FOLLY_A64
-# error "PackedSyncPtr is x64, ppc64 or aarch64 specific code."
+#error "PackedSyncPtr is x64, ppc64 or aarch64 specific code."
 #endif
 
 /*
  * @author Jordan DeLong <delong.j@fb.com>
  */
 
-#include <folly/SmallLocks.h>
-#include <type_traits>
-#include <glog/logging.h>
-
 namespace folly {
 
 template<class T>
index 93b37ab..ca499aa 100644 (file)
@@ -27,8 +27,8 @@
 
 #include <boost/iterator/iterator_adaptor.hpp>
 
-#include <folly/Portability.h>
 #include <folly/ContainerTraits.h>
+#include <folly/Portability.h>
 
 /**
  * Code that aids in storing data aligned on block (possibly cache-line)
index 485050f..f0a7d12 100644 (file)
 #include <atomic>
 #include <cinttypes>
 #include <cstdlib>
-#include <folly/Portability.h>
 #include <mutex>
 #include <type_traits>
 
-#include <folly/detail/Sleeper.h>
 #include <glog/logging.h>
 
+#include <folly/Portability.h>
+#include <folly/detail/Sleeper.h>
+
 #if !FOLLY_X64 && !FOLLY_A64 && !FOLLY_PPC64
-# error "PicoSpinLock.h is currently x64, aarch64 and ppc64 only."
+#error "PicoSpinLock.h is currently x64, aarch64 and ppc64 only."
 #endif
 
 namespace folly {
index cc4f480..21df0c0 100644 (file)
@@ -138,15 +138,13 @@ pthread_rwlock_t Read        728698     24us       101ns     7.28ms     194us
 #include <folly/Portability.h>
 #include <folly/portability/Asm.h>
 
-#if defined(__GNUC__) && \
-  (defined(__i386) || FOLLY_X64 || \
-   defined(ARCH_K8))
-# define RW_SPINLOCK_USE_X86_INTRINSIC_
-# include <x86intrin.h>
+#if defined(__GNUC__) && (defined(__i386) || FOLLY_X64 || defined(ARCH_K8))
+#define RW_SPINLOCK_USE_X86_INTRINSIC_
+#include <x86intrin.h>
 #elif defined(_MSC_VER) && defined(FOLLY_X64)
-# define RW_SPINLOCK_USE_X86_INTRINSIC_
+#define RW_SPINLOCK_USE_X86_INTRINSIC_
 #else
-# undef RW_SPINLOCK_USE_X86_INTRINSIC_
+#undef RW_SPINLOCK_USE_X86_INTRINSIC_
 #endif
 
 // iOS doesn't define _mm_cvtsi64_si128 and friends
index 16f3e8b..524b9d0 100644 (file)
 
 #include <folly/Random.h>
 
+#include <array>
 #include <atomic>
 #include <mutex>
 #include <random>
-#include <array>
 
 #include <folly/CallOnce.h>
 #include <folly/File.h>
@@ -31,7 +31,7 @@
 #include <glog/logging.h>
 
 #ifdef _MSC_VER
-# include <wincrypt.h> // @manual
+#include <wincrypt.h> // @manual
 #endif
 
 namespace folly {
index 52f1f17..0042176 100644 (file)
 #pragma once
 #define FOLLY_RANDOM_H_
 
-#include <type_traits>
+#include <cstdint>
 #include <random>
-#include <stdint.h>
+#include <type_traits>
+
 #include <folly/Portability.h>
 
 #if FOLLY_HAVE_EXTRANDOM_SFMT19937
index a4bb462..d14878b 100644 (file)
@@ -16,8 +16,8 @@
 
 #pragma once
 
-#include <folly/ThreadLocal.h>
 #include <folly/Singleton.h>
+#include <folly/ThreadLocal.h>
 
 namespace folly {
 
index 2d12d78..4858ab5 100644 (file)
 
 #include <folly/SocketAddress.h>
 
-#include <folly/CppAttributes.h>
-#include <folly/Exception.h>
-#include <folly/Hash.h>
-
-#include <boost/functional/hash.hpp>
-#include <string.h>
-#include <stdio.h>
-#include <errno.h>
+#include <cerrno>
+#include <cstdio>
+#include <cstring>
 #include <sstream>
 #include <string>
 #include <system_error>
 
+#include <boost/functional/hash.hpp>
+
+#include <folly/CppAttributes.h>
+#include <folly/Exception.h>
+#include <folly/Hash.h>
+
 namespace {
 
 /**
index 04a03eb..f6393b0 100644 (file)
@@ -17,6 +17,7 @@
 #pragma once
 
 #include <cstdint>
+
 #include <glog/logging.h>
 
 namespace folly {
index 8baf8f8..c28b6e5 100644 (file)
@@ -16,8 +16,8 @@
 
 #pragma once
 
-#include <stdexcept>
 #include <iterator>
+#include <stdexcept>
 
 #include <folly/CppAttributes.h>
 
index af86c66..ffc956d 100644 (file)
 
 #include <folly/String.h>
 
-#include <folly/ScopeGuard.h>
-
+#include <cctype>
 #include <cerrno>
 #include <cstdarg>
 #include <cstring>
-#include <stdexcept>
 #include <iterator>
-#include <cctype>
-#include <string.h>
+#include <stdexcept>
+
 #include <glog/logging.h>
 
+#include <folly/ScopeGuard.h>
+
 namespace folly {
 
 static inline bool is_oddspace(char c) {
index 80d3e23..c57a255 100644 (file)
 #pragma once
 #define FOLLY_STRING_H_
 
+#include <cstdarg>
 #include <exception>
-#include <stdarg.h>
 #include <string>
+#include <unordered_map>
+#include <unordered_set>
 #include <vector>
-#include <boost/type_traits.hpp>
-#include <boost/regex/pending/unicode_iterator.hpp>
 
-#include <unordered_set>
-#include <unordered_map>
+#include <boost/regex/pending/unicode_iterator.hpp>
+#include <boost/type_traits.hpp>
 
 #include <folly/Conv.h>
 #include <folly/ExceptionString.h>
index 52dad43..1c9eade 100644 (file)
@@ -25,8 +25,8 @@
 #endif
 #include <fcntl.h>
 
-#include <array>
 #include <algorithm>
+#include <array>
 #include <system_error>
 
 #include <boost/container/flat_set.hpp>
index ea2a062..98f79d2 100644 (file)
@@ -93,8 +93,9 @@
 
 #pragma once
 
-#include <sys/types.h>
 #include <signal.h>
+#include <sys/types.h>
+
 #if __APPLE__
 #include <sys/wait.h>
 #else
 #endif
 
 #include <exception>
-#include <vector>
 #include <string>
+#include <vector>
 
 #include <boost/container/flat_map.hpp>
 
index abea245..a20998b 100644 (file)
 
 #pragma once
 
-#include <stdint.h>
+#include <cstdint>
 #include <functional>
-#include <boost/multi_index_container.hpp>
+
 #include <boost/multi_index/indexed_by.hpp>
-#include <boost/multi_index/ordered_index.hpp>
 #include <boost/multi_index/member.hpp>
+#include <boost/multi_index/ordered_index.hpp>
+#include <boost/multi_index_container.hpp>
 
 namespace folly {
 
index cc30fad..03442be 100644 (file)
 
 #pragma once
 
-#include <memory>
+#include <functional>
 #include <limits>
+#include <memory>
 #include <type_traits>
-#include <functional>
 
 #include <folly/Portability.h>
 
index 03fe3a0..57ddfb4 100644 (file)
@@ -16,7 +16,8 @@
 
 #include <folly/Uri.h>
 
-#include <ctype.h>
+#include <cctype>
+
 #include <boost/regex.hpp>
 
 namespace folly {
index 3ae3cd6..e8e5b75 100644 (file)
@@ -18,8 +18,8 @@
 #define __STDC_FORMAT_MACROS 1
 #endif
 
-#include <cstdio>
 #include <cinttypes>
+#include <cstdio>
 
 #include <string>
 
index e9ca9d0..49331bf 100644 (file)
@@ -17,6 +17,7 @@
 #pragma once
 
 #include <thread>
+
 #include <folly/portability/Asm.h>
 
 // Some utilities used by AtomicHashArray and AtomicHashMap
index 77fa735..83ef667 100644 (file)
@@ -1,7 +1,23 @@
+/*
+ * Copyright 2004-present Facebook, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #pragma once
 
 #include <atomic>
-#include <stdint.h>
+#include <cstdint>
 
 #include <folly/portability/SysMman.h>
 #include <folly/portability/Unistd.h>
index 86cd6f5..ee64ffe 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <iterator>
 #include <type_traits>
+
 #include <boost/iterator/iterator_adaptor.hpp>
 
 namespace folly {
index 12ecbe6..8f0d70b 100644 (file)
@@ -16,8 +16,8 @@
 
 #pragma once
 
-#include <utility>
 #include <type_traits>
+#include <utility>
 
 namespace folly {
 namespace dptr_detail {
index bc24119..8755041 100644 (file)
 #pragma once
 
 #include <atomic>
+#include <cassert>
 #include <chrono>
 #include <limits>
-#include <assert.h>
+
 #include <boost/noncopyable.hpp>
 
 #include <folly/portability/Unistd.h>
index 28dbfd8..bc13a2e 100644 (file)
 
 #pragma once
 
-#include <string>
 #include <sys/types.h>
+
+#include <string>
+
 #include <folly/portability/Sockets.h>
 
 namespace folly { namespace detail {
index f6694fa..37c7213 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <atomic>
 #include <chrono>
+
 #include <folly/AtomicStruct.h>
 #include <folly/Hash.h>
 #include <folly/ThreadId.h>
index f681aac..fa78f28 100644 (file)
@@ -17,6 +17,7 @@
 #include <folly/detail/RangeCommon.h>
 
 #include <bitset>
+
 #include <folly/SparseByteSet.h>
 
 namespace folly {
index 1777fd6..ce5325e 100644 (file)
@@ -18,7 +18,9 @@
 
 #include <algorithm>
 #include <string>
+
 #include <glog/logging.h>
+
 #include <folly/Likely.h>
 
 namespace folly {
index fc9a759..84dcfb8 100644 (file)
  * limitations under the License.
  */
 
-#include "RangeSse42.h"
+#include <folly/detail/RangeSse42.h>
 
 #include <glog/logging.h>
+
 #include <folly/Portability.h>
 
 //  Essentially, two versions of this file: one with an SSE42 implementation
index 1ef87b5..1b74cfd 100644 (file)
@@ -17,6 +17,7 @@
 #pragma once
 
 #include <cstddef>
+
 #include <folly/detail/RangeCommon.h>
 
 namespace folly {
index b0721fd..6dcc9a7 100644 (file)
@@ -17,8 +17,8 @@
 #pragma once
 
 #include <folly/Fingerprint.h>
-#include <folly/detail/FingerprintPolynomial.h>
 #include <folly/Range.h>
+#include <folly/detail/FingerprintPolynomial.h>
 
 namespace folly {
 namespace detail {
index 48666de..7db61c0 100644 (file)
 #pragma once
 
 #include <functional>
+
 #include <boost/iterator/iterator_adaptor.hpp>
 #include <boost/iterator/iterator_facade.hpp>
-#include <folly/Likely.h>
+
 #include <folly/Conv.h>
 #include <folly/Format.h>
+#include <folly/Likely.h>
 
 //////////////////////////////////////////////////////////////////////
 
index 7e1d19b..d497672 100644 (file)
@@ -17,8 +17,9 @@
 #pragma once
 
 #include <cstddef>
-#include <type_traits>
 #include <limits>
+#include <type_traits>
+
 #include <glog/logging.h>
 
 #include <folly/Bits.h>
index 890b324..106b8f9 100644 (file)
@@ -24,7 +24,6 @@
  */
 #pragma once
 
-#include <folly/Conv.h>
 #include <boost/function_types/is_member_pointer.hpp>
 #include <boost/function_types/parameter_types.hpp>
 #include <boost/mpl/equal.hpp>
@@ -32,6 +31,8 @@
 #include <boost/mpl/transform.hpp>
 #include <boost/mpl/vector.hpp>
 
+#include <folly/Conv.h>
+
 namespace folly {
 
 // Auto-conversion of key/value based on callback signature, documented in
index e3caf0c..3994eb6 100644 (file)
@@ -24,8 +24,8 @@
  */
 #pragma once
 
-#include <folly/dynamic.h>
 #include <folly/ScopeGuard.h>
+#include <folly/dynamic.h>
 
 namespace folly {
 
index 863f410..570e2c7 100644 (file)
@@ -21,8 +21,8 @@
 #include <folly/Conv.h>
 #include <folly/Memory.h>
 #include <folly/Optional.h>
-#include <folly/String.h>
 #include <folly/Singleton.h>
+#include <folly/String.h>
 #include <folly/json.h>
 
 namespace folly {
index be3c1d6..e11a5a8 100644 (file)
@@ -17,8 +17,8 @@
 #pragma once
 
 #include <folly/ExceptionWrapper.h>
-#include <folly/dynamic.h>
 #include <folly/Range.h>
+#include <folly/dynamic.h>
 
 /**
  * Validation according to the draft v4 standard: http://json-schema.org/
index 0e32e03..6968c7f 100644 (file)
 #pragma once
 
 #include <atomic>
-#include <boost/noncopyable.hpp>
 #include <cmath>
+#include <cstring>
 #include <memory>
-#include <string.h>
 #include <type_traits>
 
+#include <boost/noncopyable.hpp>
+
 #include <folly/Portability.h>
 #include <folly/detail/TurnSequencer.h>
 #include <folly/portability/TypeTraits.h>
index 4b376df..19f8666 100644 (file)
@@ -17,6 +17,7 @@
 #include <folly/experimental/NestedCommandLineApp.h>
 
 #include <iostream>
+
 #include <folly/FileUtil.h>
 #include <folly/Format.h>
 #include <folly/experimental/io/FsUtil.h>
index e29d2c1..416874d 100644 (file)
@@ -19,6 +19,7 @@
 #pragma once
 
 #include <memory>
+
 #include <folly/Range.h>
 
 namespace folly {
index d8b822c..4164cde 100644 (file)
@@ -19,8 +19,9 @@
 #pragma once
 
 #include <initializer_list>
-#include <memory>
 #include <map>
+#include <memory>
+
 #include <folly/Range.h>
 #include <folly/experimental/StringKeyedCommon.h>
 
index 2b3f8f3..699124d 100644 (file)
@@ -21,6 +21,7 @@
 #include <initializer_list>
 #include <memory>
 #include <set>
+
 #include <folly/Range.h>
 #include <folly/experimental/StringKeyedCommon.h>
 
index d05dafe..d0f39b9 100644 (file)
 
 #include <folly/experimental/TestUtil.h>
 
-#include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/types.h>
 
 #include <boost/regex.hpp>
+
 #include <folly/Exception.h>
 #include <folly/File.h>
 #include <folly/FileUtil.h>
index 1cc9f19..cc110fe 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <map>
 #include <string>
+
 #include <folly/Range.h>
 #include <folly/ScopeGuard.h>
 #include <folly/experimental/io/FsUtil.h>
index 4a8d5b5..461f38a 100644 (file)
@@ -13,7 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#include "Bser.h"
+
+#include <folly/experimental/bser/Bser.h>
+
 #include <folly/io/Cursor.h>
 
 using namespace folly;
index e462ee4..1c21081 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#include "Bser.h"
-#include <folly/io/Cursor.h>
+
+#include <folly/experimental/bser/Bser.h>
+
 #include <folly/String.h>
+#include <folly/io/Cursor.h>
 
 using namespace folly;
 using folly::io::Cursor;
index fec32c3..5f03dd8 100644 (file)
@@ -13,7 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 #include <folly/experimental/bser/Bser.h>
+
 #include <folly/String.h>
 #include <folly/portability/GTest.h>
 
index a669db8..d8ca18d 100644 (file)
 #define HAZPTR_STATS true
 #define HAZPTR_SCAN_THRESHOLD 10
 
-#include <folly/experimental/hazptr/test/HazptrUse1.h>
-#include <folly/experimental/hazptr/test/HazptrUse2.h>
+#include <folly/experimental/hazptr/debug.h>
 #include <folly/experimental/hazptr/example/LockFreeLIFO.h>
 #include <folly/experimental/hazptr/example/SWMRList.h>
 #include <folly/experimental/hazptr/example/WideCAS.h>
-#include <folly/experimental/hazptr/debug.h>
 #include <folly/experimental/hazptr/hazptr.h>
+#include <folly/experimental/hazptr/test/HazptrUse1.h>
+#include <folly/experimental/hazptr/test/HazptrUse2.h>
 
 #include <folly/portability/GFlags.h>
 #include <folly/portability/GTest.h>
index 3af437a..6dfb8e6 100644 (file)
@@ -17,7 +17,6 @@
 #pragma once
 
 #include <sys/types.h>
-#include <libaio.h>
 
 #include <atomic>
 #include <cstdint>
@@ -29,6 +28,7 @@
 #include <vector>
 
 #include <boost/noncopyable.hpp>
+#include <libaio.h>
 
 #include <folly/Portability.h>
 #include <folly/Range.h>
index ad15d35..fbbd770 100644 (file)
@@ -16,9 +16,9 @@
 
 #include <folly/experimental/io/HugePages.h>
 
+#include <fcntl.h>
 #include <sys/stat.h>
 #include <sys/types.h>
-#include <fcntl.h>
 
 #include <cctype>
 #include <cstring>
index d7b3273..05644c7 100644 (file)
 
 #include <folly/experimental/io/AsyncIO.h>
 
+#include <fcntl.h>
 #include <sys/stat.h>
 #include <sys/types.h>
-#include <fcntl.h>
 
-#include <cstdlib>
 #include <cstdio>
+#include <cstdlib>
 #include <memory>
 #include <random>
 #include <thread>
@@ -29,9 +29,9 @@
 
 #include <glog/logging.h>
 
-#include <folly/experimental/io/FsUtil.h>
 #include <folly/ScopeGuard.h>
 #include <folly/String.h>
+#include <folly/experimental/io/FsUtil.h>
 #include <folly/portability/GTest.h>
 #include <folly/portability/Sockets.h>
 
index 8aec70c..aae1b3a 100644 (file)
@@ -20,8 +20,8 @@
 
 #include <boost/variant.hpp>
 
-#include <folly/experimental/symbolizer/Elf.h>
 #include <folly/Range.h>
+#include <folly/experimental/symbolizer/Elf.h>
 
 namespace folly {
 namespace symbolizer {
index b16c871..f0a0bd7 100644 (file)
 #pragma once
 #define FOLLY_EXPERIMENTAL_SYMBOLIZER_ELF_H_
 
-#include <stdio.h>
 #include <elf.h>
-#include <link.h>  // For ElfW()
+#include <link.h> // For ElfW()
 
+#include <cstdio>
 #include <stdexcept>
 #include <system_error>
 
index 135b6e9..af4f4c4 100644 (file)
 
 #pragma once
 
+#include <climits> // for PATH_MAX
 #include <cstring>
-#include <limits.h>  // for PATH_MAX
 #include <memory>
 #include <mutex>
 #include <string>
-#include <vector>
 #include <unordered_map>
+#include <vector>
 
-#include <boost/operators.hpp>
 #include <boost/container/flat_map.hpp>
 #include <boost/intrusive/list.hpp>
+#include <boost/operators.hpp>
 #include <glog/logging.h>
 
 #include <folly/Hash.h>
index 56d8e2a..abfc64c 100644 (file)
 
 #include <folly/experimental/symbolizer/Symbolizer.h>
 
+#include <link.h>
+
+#include <climits>
 #include <cstdio>
 #include <cstdlib>
 #include <iostream>
-#include <limits.h>
-#include <link.h>
 
 #ifdef __GNUC__
 #include <ext/stdio_filebuf.h>
index 772b11d..73e7dfd 100644 (file)
 #include <folly/FBString.h>
 #include <folly/Range.h>
 #include <folly/String.h>
-#include <folly/io/IOBuf.h>
+#include <folly/experimental/symbolizer/Dwarf.h>
 #include <folly/experimental/symbolizer/Elf.h>
 #include <folly/experimental/symbolizer/ElfCache.h>
-#include <folly/experimental/symbolizer/Dwarf.h>
 #include <folly/experimental/symbolizer/StackTrace.h>
+#include <folly/io/IOBuf.h>
 
 namespace folly {
 namespace symbolizer {
index c2ae9e9..56c216f 100644 (file)
@@ -17,9 +17,9 @@
 #include <folly/experimental/symbolizer/test/SignalHandlerTest.h>
 #include <folly/experimental/symbolizer/SignalHandler.h>
 
+#include <folly/CPortability.h>
 #include <folly/FileUtil.h>
 #include <folly/Range.h>
-#include <folly/CPortability.h>
 #include <folly/portability/GTest.h>
 
 namespace folly { namespace symbolizer { namespace test {
index a026338..7ece8e3 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 #include <atomic>
-#include <glog/logging.h>
-#include <random>
 #include <memory>
+#include <random>
+
+#include <glog/logging.h>
 
 #include <folly/Benchmark.h>
 #include <folly/experimental/Bits.h>
index f7c3dfe..ffbfd53 100644 (file)
@@ -21,8 +21,9 @@
 #include <limits>
 #include <random>
 #include <string>
-#include <vector>
 #include <unordered_set>
+#include <vector>
+
 #include <glog/logging.h>
 
 #include <folly/portability/GTest.h>
index 17da464..80fdcc4 100644 (file)
@@ -21,6 +21,7 @@
 #include <random>
 #include <thread>
 #include <vector>
+
 #include <glog/logging.h>
 
 #include <folly/Random.h>
index 0085f88..cb21b80 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#include <folly/experimental/FlatCombiningPriorityQueue.h>
 #include <folly/Benchmark.h>
+#include <folly/experimental/FlatCombiningPriorityQueue.h>
 #include <folly/portability/GTest.h>
 #include <glog/logging.h>
 
index dd1567f..7f48b9c 100644 (file)
@@ -18,8 +18,8 @@
 #include <thread>
 
 #include <folly/experimental/LockFreeRingBuffer.h>
-#include <folly/test/DeterministicSchedule.h>
 #include <folly/portability/GTest.h>
+#include <folly/test/DeterministicSchedule.h>
 
 namespace folly {
 
index e1d7f43..42ae2b1 100644 (file)
@@ -19,8 +19,8 @@
 // Implements two commands: "cat" and "echo", which behave similarly to their
 // Unix homonyms.
 
-#include <folly/String.h>
 #include <folly/ScopeGuard.h>
+#include <folly/String.h>
 #include <folly/experimental/NestedCommandLineApp.h>
 #include <folly/experimental/ProgramOptions.h>
 
index 172343e..12691b8 100644 (file)
  */
 
 #include <iostream>
+
+#include <glog/logging.h>
+
 #include <folly/Conv.h>
 #include <folly/experimental/ProgramOptions.h>
-#include <glog/logging.h>
 
 DEFINE_bool(flag_bool_true, true, "Bool with true default value");
 DEFINE_bool(flag_bool_false, false, "Bool with false default value");
index ba85eb0..0899611 100644 (file)
 /* -*- Mode: C++; tab-width: 2; c-basic-offset: 2; indent-tabs-mode: nil -*- */
 
 #include <atomic>
-#include <thread>
-#include <mutex>
-#include <folly/Memory.h>
 #include <condition_variable>
+#include <mutex>
+#include <thread>
 
 #include <folly/Baton.h>
+#include <folly/Memory.h>
 #include <folly/experimental/RCURefCount.h>
 #include <folly/experimental/ReadMostlySharedPtr.h>
 #include <folly/portability/GTest.h>
index 84bf33a..df837c5 100644 (file)
 #include <chrono>
 #include <random>
 #include <thread>
+
 #include <folly/Baton.h>
 #include <folly/Optional.h>
 #include <folly/Random.h>
-#include <folly/futures/detail/Core.h>
 #include <folly/futures/Timekeeper.h>
+#include <folly/futures/detail/Core.h>
 
 #if FOLLY_MOBILE || defined(__APPLE__)
 #define FOLLY_FUTURE_USING_FIBER 0
index 6fdaa25..e53331b 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 #include <folly/futures/Future.h>
-#include <folly/futures/ThreadWheelTimekeeper.h>
 #include <folly/Likely.h>
+#include <folly/futures/ThreadWheelTimekeeper.h>
 
 namespace folly {
 
index 76847e2..689111e 100644 (file)
  */
 
 #pragma once
-#include <folly/LifoSem.h>
-#include <folly/futures/DrivableExecutor.h>
-#include <folly/futures/ScheduledExecutor.h>
+
+#include <cstdio>
 #include <memory>
 #include <mutex>
 #include <queue>
-#include <cstdio>
+
+#include <folly/LifoSem.h>
+#include <folly/futures/DrivableExecutor.h>
+#include <folly/futures/ScheduledExecutor.h>
 
 namespace folly {
   /// A ManualExecutor only does work when you turn the crank, by calling
index 51a4a17..2e466b1 100644 (file)
@@ -16,8 +16,8 @@
 
 #pragma once
 
-#include <folly/futures/Promise.h>
 #include <folly/Portability.h>
+#include <folly/futures/Promise.h>
 
 namespace folly {
 
index 4214229..f5223f4 100644 (file)
@@ -16,8 +16,8 @@
 
 #pragma once
 
-#include <folly/futures/detail/Types.h>
 #include <folly/Unit.h>
+#include <folly/futures/detail/Types.h>
 
 namespace folly {
 
index fc3bb11..a9076ad 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <atomic>
 #include <mutex>
+
 #include <folly/MicroSpinLock.h>
 
 namespace folly { namespace detail {
index 3f6ea12..97b4af1 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#include "Koan.h"
+
 #include <folly/futures/Future.h>
 
+#include "Koan.h"
+
 using folly::Future;
 using folly::makeFuture;
 
index 95523b2..8b0f913 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 #pragma once
-#include <folly/Portability.h>
-#include <gtest/gtest.h>
+
 #include <gflags/gflags.h>
+#include <gtest/gtest.h>
+
+#include <folly/Portability.h>
index 908fa3c..c01fadf 100644 (file)
 
 #include <boost/thread/barrier.hpp>
 
-#include <folly/futures/Future.h>
 #include <folly/Random.h>
-#include <folly/small_vector.h>
+#include <folly/futures/Future.h>
 #include <folly/portability/GTest.h>
+#include <folly/small_vector.h>
 
 using namespace folly;
 
index d21f107..d4b24e0 100644 (file)
  * limitations under the License.
  */
 
+#include <folly/Baton.h>
 #include <folly/futures/Future.h>
 #include <folly/futures/InlineExecutor.h>
 #include <folly/futures/ManualExecutor.h>
 #include <folly/futures/QueuedImmediateExecutor.h>
-#include <folly/Baton.h>
 #include <folly/portability/GTest.h>
 
 using namespace folly;
index 4dd3f2d..6db394d 100644 (file)
  * limitations under the License.
  */
 
-#include <folly/futures/Future.h>
-#include <folly/Unit.h>
-#include <folly/Memory.h>
+#include <folly/Baton.h>
 #include <folly/Executor.h>
+#include <folly/Memory.h>
+#include <folly/Unit.h>
 #include <folly/dynamic.h>
-#include <folly/Baton.h>
+#include <folly/futures/Future.h>
 #include <folly/portability/GTest.h>
 
 #include <algorithm>
index fd81b74..927905f 100644 (file)
@@ -17,8 +17,8 @@
 // amazing what things can go wrong if you include things in an unexpected
 // order.
 #include <folly/Try.h>
-#include <folly/futures/Promise.h>
 #include <folly/futures/Future.h>
+#include <folly/futures/Promise.h>
 #include <folly/portability/GTest.h>
 
 TEST(Basic, compiles) {
index 7e8f329..7c51bb1 100644 (file)
@@ -14,9 +14,9 @@
  * limitations under the License.
  */
 
+#include <folly/Baton.h>
 #include <folly/futures/Future.h>
 #include <folly/futures/Promise.h>
-#include <folly/Baton.h>
 #include <folly/portability/GTest.h>
 
 using namespace folly;
index f843a02..198c4f9 100644 (file)
  * limitations under the License.
  */
 
+#include <thread>
+
+#include <folly/Baton.h>
+#include <folly/MPMCQueue.h>
+#include <folly/futures/DrivableExecutor.h>
 #include <folly/futures/Future.h>
 #include <folly/futures/InlineExecutor.h>
 #include <folly/futures/ManualExecutor.h>
-#include <folly/futures/DrivableExecutor.h>
-#include <folly/Baton.h>
-#include <folly/MPMCQueue.h>
 #include <folly/portability/GTest.h>
 
-#include <thread>
-
 using namespace folly;
 
 struct ManualWaiter : public DrivableExecutor {
index 85ff617..57e4e17 100644 (file)
@@ -16,9 +16,9 @@
 
 #include <queue>
 
+#include <folly/Baton.h>
 #include <folly/futures/Future.h>
 #include <folly/io/async/EventBase.h>
-#include <folly/Baton.h>
 #include <folly/portability/GTest.h>
 
 using namespace folly;
index 07324b3..a059898 100644 (file)
@@ -13,7 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 #include <atomic>
+
 #include <glog/logging.h>
 
 #include <folly/Benchmark.h>
index 42c9040..da21cdc 100644 (file)
  * limitations under the License.
  */
 #include <string>
-#include <vector>
 #include <tuple>
+#include <vector>
 
-#include <folly/Range.h>
 #include <folly/FBVector.h>
+#include <folly/Range.h>
 #include <folly/gen/Base.h>
 #include <folly/gen/Combine.h>
 #include <folly/portability/GTest.h>
index 64912ac..74693c5 100644 (file)
@@ -13,7 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 #include <thread>
+
 #include <glog/logging.h>
 
 #include <folly/Benchmark.h>
index 28fdc7e..9bced1e 100644 (file)
  * limitations under the License.
  */
 
-#include <glog/logging.h>
-#include <iostream>
 #include <array>
-#include <vector>
 #include <future>
+#include <iostream>
+#include <vector>
+
+#include <glog/logging.h>
 
 #include <folly/gen/Base.h>
 #include <folly/gen/Parallel.h>
index 0e2e7f7..89e9f06 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#include <atomic>
 #include <algorithm>
+#include <atomic>
 #include <thread>
 #include <vector>
 
index 36bc4c9..b90202c 100644 (file)
  * limitations under the License.
  */
 
-#include <glog/logging.h>
-
-#include <iostream>
 #include <array>
+#include <iostream>
 #include <vector>
 
+#include <glog/logging.h>
+
 #include <folly/gen/Base.h>
 #include <folly/gen/Parallel.h>
 #include <folly/portability/GTest.h>
index c6de1ed..df7dcec 100644 (file)
@@ -13,7 +13,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 #include <atomic>
+
 #include <glog/logging.h>
 
 #include <folly/Benchmark.h>
index 98f332b..cfa5318 100644 (file)
@@ -27,8 +27,8 @@
 #include <glog/logging.h>
 
 #if FOLLY_HAVE_LIBSNAPPY
-#include <snappy.h>
 #include <snappy-sinksource.h>
+#include <snappy.h>
 #endif
 
 #if FOLLY_HAVE_LIBZ
index c51ce6c..cd7807c 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 #include <folly/io/Cursor.h>
 
 #include <cstdio>
+
 #include <folly/ScopeGuard.h>
 
 namespace folly {
index 4d61b4f..ac5ec91 100644 (file)
 
 #pragma once
 
-#include <assert.h>
+#include <cassert>
 #include <cstdarg>
+#include <cstring>
+#include <memory>
 #include <stdexcept>
-#include <string.h>
 #include <type_traits>
-#include <memory>
 
 #include <folly/Bits.h>
 #include <folly/Likely.h>
index 5698606..a71ff32 100644 (file)
 
 #include <folly/io/IOBuf.h>
 
+#include <cassert>
+#include <cstdint>
+#include <cstdlib>
+#include <stdexcept>
+
 #include <folly/Conv.h>
 #include <folly/Likely.h>
 #include <folly/Malloc.h>
 #include <folly/SpookyHashV2.h>
 #include <folly/io/Cursor.h>
 
-#include <stdexcept>
-#include <assert.h>
-#include <stdint.h>
-#include <stdlib.h>
-
 using std::unique_ptr;
 
 namespace {
index 238c4ec..3e68f47 100644 (file)
@@ -22,8 +22,8 @@
 #include <cinttypes>
 #include <cstddef>
 #include <cstring>
-#include <memory>
 #include <limits>
+#include <memory>
 #include <type_traits>
 
 #include <boost/iterator/iterator_facade.hpp>
index 0acb4a2..856e329 100644 (file)
@@ -31,8 +31,8 @@
 #include <mutex>
 
 #include <folly/File.h>
-#include <folly/Range.h>
 #include <folly/MemoryMapping.h>
+#include <folly/Range.h>
 #include <folly/io/IOBuf.h>
 
 namespace folly {
index 7a4ece3..c98206e 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-#pragma once
 
-#include <folly/io/async/AsyncTransport.h>
-#include <folly/io/async/EventHandler.h>
-#include <folly/io/async/DelayedDestruction.h>
-#include <folly/io/IOBufQueue.h>
+#pragma once
 
 #include <list>
 #include <system_error>
 
+#include <folly/io/IOBufQueue.h>
+#include <folly/io/async/AsyncTransport.h>
+#include <folly/io/async/DelayedDestruction.h>
+#include <folly/io/async/EventHandler.h>
+
 namespace folly {
 
 class AsyncSocketException;
index 474225c..33cfb62 100644 (file)
 
 #include <iomanip>
 
+#include <folly/Bits.h>
 #include <folly/Optional.h>
 #include <folly/String.h>
+#include <folly/io/Cursor.h>
+#include <folly/io/IOBuf.h>
 #include <folly/io/async/AsyncSocket.h>
 #include <folly/io/async/AsyncTimeout.h>
 #include <folly/io/async/SSLContext.h>
 #include <folly/io/async/TimeoutManager.h>
-#include <folly/ssl/OpenSSLPtrTypes.h>
 #include <folly/io/async/ssl/OpenSSLUtils.h>
 #include <folly/io/async/ssl/SSLErrors.h>
 #include <folly/io/async/ssl/TLSDefinitions.h>
-
-#include <folly/Bits.h>
-#include <folly/io/IOBuf.h>
-#include <folly/io/Cursor.h>
 #include <folly/portability/OpenSSL.h>
 #include <folly/portability/Sockets.h>
+#include <folly/ssl/OpenSSLPtrTypes.h>
 
 namespace folly {
 
index 6462f11..09363a3 100644 (file)
@@ -31,8 +31,8 @@
 #include <sys/types.h>
 
 #include <chrono>
-#include <memory>
 #include <map>
+#include <memory>
 
 namespace folly {
 
index 7af32f2..337fba9 100644 (file)
@@ -22,9 +22,9 @@
 #include <folly/io/async/AsyncSocketBase.h>
 #include <folly/io/async/DelayedDestruction.h>
 #include <folly/io/async/EventBase.h>
-#include <folly/ssl/OpenSSLPtrTypes.h>
 #include <folly/portability/OpenSSL.h>
 #include <folly/portability/SysUio.h>
+#include <folly/ssl/OpenSSLPtrTypes.h>
 
 constexpr bool kOpenSslModeMoveBufferOwnership =
 #ifdef SSL_MODE_MOVE_BUFFER_OWNERSHIP
index 8658658..f712dd0 100644 (file)
@@ -16,8 +16,8 @@
 
 #pragma once
 
-#include <folly/io/IOBufQueue.h>
 #include <folly/Memory.h>
+#include <folly/io/IOBufQueue.h>
 #include <folly/io/async/AsyncUDPSocket.h>
 #include <folly/io/async/EventBase.h>
 
index 43c79c2..54ca73a 100644 (file)
@@ -16,8 +16,8 @@
 
 #include <folly/io/async/AsyncUDPSocket.h>
 
-#include <folly/io/async/EventBase.h>
 #include <folly/Likely.h>
+#include <folly/io/async/EventBase.h>
 #include <folly/portability/Fcntl.h>
 #include <folly/portability/Sockets.h>
 #include <folly/portability/Unistd.h>
index 4a5a738..d327c1d 100644 (file)
 
 #pragma once
 
-#include <folly/io/IOBuf.h>
+#include <memory>
+
 #include <folly/ScopeGuard.h>
-#include <folly/io/async/AsyncSocketException.h>
+#include <folly/SocketAddress.h>
+#include <folly/io/IOBuf.h>
 #include <folly/io/async/AsyncSocketBase.h>
-#include <folly/io/async/EventHandler.h>
+#include <folly/io/async/AsyncSocketException.h>
 #include <folly/io/async/EventBase.h>
-#include <folly/SocketAddress.h>
-
-#include <memory>
+#include <folly/io/async/EventHandler.h>
 
 namespace folly {
 
index 0ee54f5..2982a64 100644 (file)
 #pragma once
 
 #include <atomic>
+#include <cerrno>
+#include <cmath>
 #include <cstdlib>
-#include <errno.h>
 #include <functional>
 #include <list>
-#include <math.h>
 #include <memory>
 #include <mutex>
 #include <queue>
@@ -33,6 +33,7 @@
 
 #include <boost/intrusive/list.hpp>
 #include <boost/utility.hpp>
+#include <glog/logging.h>
 
 #include <folly/CallOnce.h>
 #include <folly/Executor.h>
@@ -46,7 +47,6 @@
 #include <folly/io/async/Request.h>
 #include <folly/io/async/TimeoutManager.h>
 #include <folly/portability/Event.h>
-#include <glog/logging.h>
 
 
 namespace folly {
index 5c2ba11..cfcafd8 100644 (file)
 
 #pragma once
 
+#include <list>
+#include <set>
+
 #include <folly/ThreadLocal.h>
 #include <folly/io/async/EventBase.h>
-#include <set>
-#include <list>
 
 namespace folly {
 
index cd985f8..994a718 100644 (file)
@@ -26,7 +26,7 @@
 #endif
 
 #ifdef FOLLY_HAVE_FEATURES_H
-# include <features.h>
+#include <features.h>
 #endif
 
 #if defined(__GLIBC__) && !defined(__APPLE__)
@@ -40,9 +40,9 @@
 #include <sys/eventfd.h>
 #else /* !def FOLLY_GLIBC_2_9 */
 
+#include <fcntl.h>
 #include <sys/syscall.h>
 #include <unistd.h>
-#include <fcntl.h>
 
 // Use existing __NR_eventfd2 if already defined
 // Values from the Linux kernel source:
index 0d3e5d4..80c405e 100644 (file)
 
 #pragma once
 
+#include <cstddef>
+
+#include <boost/noncopyable.hpp>
 #include <glog/logging.h>
+
 #include <folly/io/async/EventUtil.h>
 #include <folly/portability/Event.h>
-#include <boost/noncopyable.hpp>
-#include <stddef.h>
 
 namespace folly {
 
index 076139f..0b3ae9e 100644 (file)
 
 #include <folly/Exception.h>
 #include <folly/FileUtil.h>
-#include <folly/io/async/EventBase.h>
-#include <folly/io/async/EventHandler.h>
-#include <folly/io/async/DelayedDestruction.h>
-#include <folly/io/async/Request.h>
 #include <folly/Likely.h>
 #include <folly/ScopeGuard.h>
 #include <folly/SpinLock.h>
+#include <folly/io/async/DelayedDestruction.h>
+#include <folly/io/async/EventBase.h>
+#include <folly/io/async/EventHandler.h>
+#include <folly/io/async/Request.h>
 #include <folly/portability/Fcntl.h>
 #include <folly/portability/Sockets.h>
 #include <folly/portability/Unistd.h>
index 548a84b..589fdaf 100644 (file)
 
 #pragma once
 
-#include <mutex>
 #include <list>
 #include <map>
-#include <vector>
 #include <memory>
-#include <string>
+#include <mutex>
 #include <random>
+#include <string>
+#include <vector>
 
 #include <glog/logging.h>
 
@@ -31,9 +31,9 @@
 #endif
 
 #include <folly/Range.h>
-#include <folly/ssl/OpenSSLPtrTypes.h>
 #include <folly/io/async/ssl/OpenSSLUtils.h>
 #include <folly/portability/OpenSSL.h>
+#include <folly/ssl/OpenSSLPtrTypes.h>
 
 namespace folly {
 
index 94128e3..96af4c2 100644 (file)
@@ -17,7 +17,7 @@
 #pragma once
 
 #include <chrono>
-#include <stdint.h>
+#include <cstdint>
 
 #include <folly/Function.h>
 
index 560d5cc..8914315 100644 (file)
@@ -16,9 +16,9 @@
 #pragma once
 
 #include <folly/Range.h>
-#include <folly/ssl/OpenSSLPtrTypes.h>
 #include <folly/portability/OpenSSL.h>
 #include <folly/portability/Sockets.h>
+#include <folly/ssl/OpenSSLPtrTypes.h>
 
 namespace folly {
 namespace ssl {
index bbe172c..1259e54 100644 (file)
@@ -14,9 +14,9 @@
  * limitations under the License.
  */
 
+#include <folly/Memory.h>
 #include <folly/io/async/AsyncPipe.h>
 #include <folly/io/async/EventBase.h>
-#include <folly/Memory.h>
 #include <folly/portability/GTest.h>
 
 #include <fcntl.h>
index 816971d..103b75c 100644 (file)
@@ -15,8 +15,8 @@
  */
 #pragma once
 
-#include <signal.h>
 #include <pthread.h>
+#include <signal.h>
 
 #include <folly/ExceptionWrapper.h>
 #include <folly/SocketAddress.h>
index 28a72db..a9f7e46 100644 (file)
@@ -15,8 +15,8 @@
  */
 #include <iostream>
 
-#include <folly/io/async/AsyncSocket.h>
 #include <folly/io/async/AsyncServerSocket.h>
+#include <folly/io/async/AsyncSocket.h>
 #include <folly/io/async/EventBase.h>
 #include <folly/portability/GTest.h>
 
index 33837cd..ddcd448 100644 (file)
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 #include <folly/io/async/AsyncTransport.h>
-#include <folly/io/async/AsyncSocket.h>
 
+#include <folly/io/async/AsyncSocket.h>
 #include <folly/io/async/test/MockAsyncTransport.h>
 #include <folly/portability/GTest.h>
 
index ee42025..09ebfcc 100644 (file)
  * limitations under the License.
  */
 
-#include <folly/io/async/AsyncUDPSocket.h>
-#include <folly/io/async/AsyncUDPServerSocket.h>
+#include <folly/SocketAddress.h>
 #include <folly/io/async/AsyncTimeout.h>
+#include <folly/io/async/AsyncUDPServerSocket.h>
+#include <folly/io/async/AsyncUDPSocket.h>
 #include <folly/io/async/EventBase.h>
-#include <folly/SocketAddress.h>
 
 #include <folly/io/IOBuf.h>
 #include <folly/portability/GTest.h>
index a6c7135..a05bb69 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#include <folly/io/async/HHWheelTimer.h>
 #include <folly/io/async/EventBase.h>
+#include <folly/io/async/HHWheelTimer.h>
 #include <folly/io/async/test/UndelayedDestruction.h>
 #include <folly/io/async/test/Util.h>
 #include <folly/portability/GTest.h>
index 614f230..727eaad 100644 (file)
  */
 
 #include <folly/io/async/NotificationQueue.h>
-#include <folly/io/async/ScopedEventBaseThread.h>
 
-#include <folly/Baton.h>
-#include <folly/portability/GTest.h>
+#include <sys/types.h>
 
-#include <list>
 #include <iostream>
+#include <list>
 #include <thread>
-#include <sys/types.h>
+
+#include <folly/Baton.h>
+#include <folly/io/async/ScopedEventBaseThread.h>
+#include <folly/portability/GTest.h>
 
 #ifndef _WIN32
 #include <sys/wait.h>
index 055fffe..f944d60 100644 (file)
 
 #pragma once
 
+#include <cassert>
 #include <cstdlib>
 #include <type_traits>
 #include <utility>
-#include <cassert>
 
 namespace folly {
 
index fda4a52..17eb1bc 100644 (file)
@@ -17,8 +17,8 @@
 #pragma once
 
 #include <folly/io/async/test/TimeUtil.h>
-#include <folly/test/TestUtils.h>
 #include <folly/portability/GTest.h>
+#include <folly/test/TestUtils.h>
 
 /**
  * Check how long a timeout took to fire.
index a22715d..319b528 100644 (file)
@@ -16,9 +16,9 @@
 
 #include <folly/io/IOBufQueue.h>
 
+#include <cstring>
 #include <iostream>
 #include <stdexcept>
-#include <string.h>
 
 #include <folly/Range.h>
 #include <folly/portability/GTest.h>
index f9c8067..66198ee 100644 (file)
 
 #pragma once
 
-#include <stdexcept>
-#include <cstdlib>
-#include <type_traits>
 #include <algorithm>
-#include <iterator>
 #include <cassert>
+#include <cstdlib>
+#include <iterator>
+#include <stdexcept>
+#include <type_traits>
 
-#include <boost/operators.hpp>
-#include <boost/type_traits.hpp>
-#include <boost/mpl/if.hpp>
+#include <boost/mpl/count.hpp>
+#include <boost/mpl/empty.hpp>
 #include <boost/mpl/eval_if.hpp>
-#include <boost/mpl/vector.hpp>
-#include <boost/mpl/front.hpp>
 #include <boost/mpl/filter_view.hpp>
+#include <boost/mpl/front.hpp>
 #include <boost/mpl/identity.hpp>
+#include <boost/mpl/if.hpp>
 #include <boost/mpl/placeholders.hpp>
-#include <boost/mpl/empty.hpp>
 #include <boost/mpl/size.hpp>
-#include <boost/mpl/count.hpp>
+#include <boost/mpl/vector.hpp>
+#include <boost/operators.hpp>
+#include <boost/type_traits.hpp>
 
 #include <folly/Assume.h>
 #include <folly/FormatTraits.h>
index e119cde..a0837ca 100644 (file)
  * limitations under the License.
  */
 
-#include <thread>
 #include <memory>
 #include <mutex>
+#include <thread>
 
 #include <folly/AtomicHashMap.h>
-#include <folly/ScopeGuard.h>
 #include <folly/Memory.h>
+#include <folly/ScopeGuard.h>
 #include <folly/portability/GTest.h>
 
 namespace {
index bc216d2..5dddd97 100644 (file)
@@ -18,8 +18,8 @@
  * @author: Marcelo Juchem <marcelo@fb.com>
  */
 
-#include <folly/Memory.h>
 #include <folly/Arena.h>
+#include <folly/Memory.h>
 #include <folly/portability/GTest.h>
 
 using namespace folly;
index a99d486..3e9dacb 100644 (file)
@@ -22,8 +22,8 @@
 #include <folly/Conv.h>
 #include <folly/Hash.h>
 #include <folly/Memory.h>
-#include <folly/portability/SysMman.h>
 #include <folly/portability/GTest.h>
+#include <folly/portability/SysMman.h>
 
 using namespace std;
 using namespace folly;
index e3f3ab0..ee2968d 100644 (file)
 
 #include <folly/AtomicHashMap.h>
 
-#include <glog/logging.h>
-#include <thread>
 #include <atomic>
 #include <memory>
+#include <thread>
+
+#include <glog/logging.h>
 
 #include <folly/Benchmark.h>
 #include <folly/Conv.h>
index 74b7179..ded7fb5 100644 (file)
  */
 
 #include <folly/Baton.h>
-#include <folly/test/BatonTestHelpers.h>
-#include <folly/test/DeterministicSchedule.h>
-#include <folly/portability/GTest.h>
 
 #include <thread>
 
+#include <folly/portability/GTest.h>
+#include <folly/test/BatonTestHelpers.h>
+#include <folly/test/DeterministicSchedule.h>
+
 using namespace folly;
 using namespace folly::test;
 using folly::detail::EmulatedFutexAtomic;
index e4de09d..7dfdc81 100644 (file)
@@ -17,8 +17,8 @@
 #pragma once
 
 #include <folly/Baton.h>
-#include <folly/test/DeterministicSchedule.h>
 #include <folly/portability/GTest.h>
+#include <folly/test/DeterministicSchedule.h>
 
 namespace folly {
 namespace test {
index 9ddaeec..49001d8 100644 (file)
@@ -17,8 +17,8 @@
 #include <folly/Bits.h>
 
 #include <algorithm>
-#include <type_traits>
 #include <limits>
+#include <type_traits>
 #include <vector>
 
 #include <folly/Benchmark.h>
index 0d7bde1..b54e528 100644 (file)
@@ -17,6 +17,7 @@
 #include <folly/Checksum.h>
 
 #include <boost/crc.hpp>
+
 #include <folly/Benchmark.h>
 #include <folly/Hash.h>
 #include <folly/detail/ChecksumDetail.h>
index a46ffc1..549594a 100644 (file)
 
 #include <folly/ClockGettimeWrappers.h>
 
-#include <folly/test/TestUtils.h>
-#include <folly/portability/GTest.h>
-
 #include <chrono>
 
+#include <folly/portability/GTest.h>
+#include <folly/test/TestUtils.h>
+
 static constexpr auto kAcceptableDeltaSecs = std::chrono::seconds(120);
 
 using folly::test::AreWithinSecs;
index 2e578e5..87f416b 100644 (file)
@@ -21,9 +21,9 @@
 #include <atomic>
 #include <memory>
 #include <set>
-#include <vector>
-#include <thread>
 #include <system_error>
+#include <thread>
+#include <vector>
 
 #include <glog/logging.h>
 
index 36f7298..9d7db86 100644 (file)
@@ -16,8 +16,8 @@
 
 #include <stdexcept>
 
-#include <folly/ExceptionWrapper.h>
 #include <folly/Conv.h>
+#include <folly/ExceptionWrapper.h>
 #include <folly/portability/GTest.h>
 
 using namespace folly;
index f50a289..342ede9 100644 (file)
@@ -20,8 +20,8 @@
 #include <folly/FBString.h>
 
 #include <cstdlib>
-#include <list>
 #include <fstream>
+#include <list>
 #include <sstream>
 
 #include <boost/random.hpp>
index c2110d1..92f32eb 100644 (file)
 
 #include <atomic>
 #include <cstdlib>
-
 #include <iomanip>
 #include <list>
 #include <sstream>
+
 #include <boost/algorithm/string.hpp>
 #include <boost/random.hpp>
 
+#include <folly/Conv.h>
 #include <folly/Foreach.h>
 #include <folly/Portability.h>
 #include <folly/Random.h>
-#include <folly/Conv.h>
 #include <folly/portability/GTest.h>
 
 using namespace std;
index 8884e69..ca327cd 100644 (file)
 //
 // Author: andrei.alexandrescu@fb.com
 
+#include <list>
+#include <memory>
+
+#include <boost/random.hpp>
+
 #include <folly/Benchmark.h>
 #include <folly/FBString.h>
 #include <folly/FBVector.h>
 #include <folly/portability/GFlags.h>
 #include <folly/portability/GTest.h>
 
-#include <list>
-#include <memory>
-#include <boost/random.hpp>
-
 using namespace std;
 using namespace folly;
 
index 7997da7..604cd05 100644 (file)
 //
 // Author: andrei.alexandrescu@fb.com
 
-#include <folly/Foreach.h>
-#include <folly/Traits.h>
-#include <folly/Random.h>
-#include <folly/FBString.h>
 #include <folly/FBVector.h>
-#include <folly/portability/GTest.h>
 
 #include <list>
 #include <map>
 #include <memory>
+
 #include <boost/random.hpp>
 
+#include <folly/FBString.h>
+#include <folly/Foreach.h>
+#include <folly/Random.h>
+#include <folly/Traits.h>
+#include <folly/portability/GTest.h>
+
 using namespace std;
 using namespace folly;
 
index a72995c..85e5409 100644 (file)
@@ -18,8 +18,8 @@
 
 #include <mutex>
 
-#include <glog/logging.h>
 #include <boost/thread/locks.hpp>
+#include <glog/logging.h>
 
 #include <folly/String.h>
 #include <folly/Subprocess.h>
index 5e26a67..cd02a11 100644 (file)
  */
 
 #include <random>
+
 #include <folly/Benchmark.h>
+#include <folly/Fingerprint.h>
 #include <folly/Format.h>
 #include <folly/detail/SlowFingerprint.h>
-#include <folly/Fingerprint.h>
 
 using namespace std;
 using namespace folly;
index e054249..e8ef9ac 100644 (file)
@@ -18,8 +18,8 @@
 
 #include <glog/logging.h>
 
-#include <folly/detail/SlowFingerprint.h>
 #include <folly/Benchmark.h>
+#include <folly/detail/SlowFingerprint.h>
 #include <folly/portability/GTest.h>
 
 using namespace folly;
index 367c3a4..6940cc7 100644 (file)
 
 #include <folly/Foreach.h>
 
-#include <folly/portability/GTest.h>
-
+#include <list>
 #include <map>
 #include <string>
 #include <vector>
-#include <list>
+
+#include <folly/portability/GTest.h>
 
 using namespace folly;
 using namespace folly::detail;
index b64238b..db57ef9 100644 (file)
@@ -24,8 +24,8 @@
 
 #include <glog/logging.h>
 
-#include <folly/portability/Time.h>
 #include <folly/portability/GTest.h>
+#include <folly/portability/Time.h>
 
 using namespace folly::detail;
 using namespace folly::test;
index 061e9fa..b224674 100644 (file)
  * limitations under the License.
  */
 
-#include <stdarg.h>
-#include <algorithm>
 #include <folly/GroupVarint.h>
 
+#include <algorithm>
+#include <cstdarg>
+
 // On platforms where it's not supported, GroupVarint will be compiled out.
 #if HAVE_GROUP_VARINT
 
index 5fe9c80..b11dc11 100644 (file)
@@ -15,9 +15,9 @@
  */
 #include <folly/Lazy.h>
 
-#include <map>
 #include <functional>
 #include <iostream>
+#include <map>
 
 #include <folly/portability/GTest.h>
 
index f5df99f..5ad28d5 100644 (file)
  */
 
 #include <folly/Memory.h>
-#include <folly/Arena.h>
-#include <folly/String.h>
-#include <folly/portability/GTest.h>
-
-#include <glog/logging.h>
 
 #include <type_traits>
 #include <utility>
 
+#include <glog/logging.h>
+
+#include <folly/Arena.h>
+#include <folly/String.h>
+#include <folly/portability/GTest.h>
+
 using namespace folly;
 
 TEST(make_unique, compatible_with_std_make_unique) {
index d37ac91..01b83d9 100644 (file)
 
 // @author: Bert Maher <bertrand@fb.com>
 
-#include <thread>
-#include <iostream>
-#include <stdio.h>
+#include <folly/ProducerConsumerQueue.h>
+
 #include <pthread.h>
 
+#include <cstdio>
+#include <iostream>
+#include <thread>
+
+#include <glog/logging.h>
+
 #include <folly/Benchmark.h>
-#include <folly/ProducerConsumerQueue.h>
 #include <folly/portability/GFlags.h>
 #include <folly/stats/Histogram.h>
 #include <folly/stats/Histogram-defs.h>
-#include <glog/logging.h>
 
 namespace {
 
index 1f9c9ee..8323d08 100644 (file)
@@ -21,8 +21,8 @@
 #include <folly/RWSpinLock.h>
 
 #include <stdlib.h>
-#include <vector>
 #include <thread>
+#include <vector>
 
 #include <glog/logging.h>
 
index 287482e..60f6c5b 100644 (file)
 
 #include <folly/Random.h>
 
-#include <folly/Benchmark.h>
-#include <folly/Foreach.h>
+#include <random>
+#include <thread>
 
 #include <glog/logging.h>
 
-#include <thread>
-#include <random>
+#include <folly/Benchmark.h>
+#include <folly/Foreach.h>
 
 using namespace folly;
 
index 25a2070..30f9925 100644 (file)
 
 #include <folly/Random.h>
 
-#include <glog/logging.h>
-
 #include <algorithm>
-#include <thread>
-#include <vector>
 #include <random>
+#include <thread>
 #include <unordered_set>
+#include <vector>
+
+#include <glog/logging.h>
 
 #include <folly/portability/GTest.h>
 
index 5ba0792..ec15a1c 100644 (file)
  */
 
 #include <folly/Range.h>
-#include <folly/Benchmark.h>
-#include <folly/Foreach.h>
+
 #include <algorithm>
 #include <iostream>
 #include <random>
 #include <string>
 
+#include <folly/Benchmark.h>
+#include <folly/Foreach.h>
+
 using namespace folly;
 using namespace std;
 
index 8a2b276..a389885 100644 (file)
 
 #include <folly/Range.h>
 
-#include <folly/portability/GTest.h>
-#include <folly/portability/Memory.h>
-#include <folly/portability/SysMman.h>
-
 #include <array>
 #include <iterator>
 #include <limits>
 #include <string>
 #include <type_traits>
 #include <vector>
-#include <boost/range/concepts.hpp>
+
 #include <boost/algorithm/string/trim.hpp>
+#include <boost/range/concepts.hpp>
+
+#include <folly/portability/GTest.h>
+#include <folly/portability/Memory.h>
+#include <folly/portability/SysMman.h>
 
 using namespace folly;
 using namespace folly::detail;
index be95ea4..67f88f1 100644 (file)
@@ -16,6 +16,9 @@
 
 #include <thread>
 
+#include <boost/thread/barrier.hpp>
+#include <glog/logging.h>
+
 #include <folly/Singleton.h>
 #include <folly/experimental/io/FsUtil.h>
 #include <folly/io/async/EventBase.h>
@@ -27,9 +30,6 @@
 #include <folly/Subprocess.h>
 #endif
 
-#include <glog/logging.h>
-#include <boost/thread/barrier.hpp>
-
 FOLLY_GCC_DISABLE_WARNING("-Wdeprecated-declarations")
 
 using namespace folly;
index 825770f..6a2b01e 100644 (file)
 #include <memory>
 #include <vector>
 
-#include <folly/Singleton.h>
 #include <folly/Benchmark.h>
-#include <folly/test/SingletonTestStructs.h>
+#include <folly/Singleton.h>
 #include <folly/portability/GTest.h>
+#include <folly/test/SingletonTestStructs.h>
 
 /*
  * This test needs to be in its own file, as a standalone program.
index 77f42db..1e71086 100644 (file)
 
 #include <folly/SmallLocks.h>
 
-#include <folly/Random.h>
+#include <pthread.h>
 
 #include <cassert>
+#include <condition_variable>
 #include <cstdio>
 #include <mutex>
-#include <condition_variable>
 #include <string>
-#include <vector>
-#include <pthread.h>
-
 #include <thread>
+#include <vector>
 
+#include <folly/Random.h>
 #include <folly/portability/Asm.h>
 #include <folly/portability/GTest.h>
 #include <folly/portability/Unistd.h>
index 19ca545..e5b4eb1 100644 (file)
 #endif
 
 #include <folly/SpookyHashV1.h>
-#include <folly/portability/GTest.h>
-#include <folly/portability/Time.h>
 
 #include <cinttypes>
-#include <cstdio>
 #include <cstddef>
-#include <cstring>
+#include <cstdio>
 #include <cstdlib>
+#include <cstring>
 
 #include <glog/logging.h>
 
+#include <folly/portability/GTest.h>
+#include <folly/portability/Time.h>
+
 using namespace ::folly::hash;
 
 static bool failed = false;
index 084760c..227b4fb 100644 (file)
 #endif
 
 #include <folly/SpookyHashV2.h>
-#include <folly/portability/GTest.h>
-#include <folly/portability/Time.h>
 
 #include <cinttypes>
-#include <cstdio>
 #include <cstddef>
-#include <cstring>
+#include <cstdio>
 #include <cstdlib>
+#include <cstring>
 
 #include <glog/logging.h>
 
+#include <folly/portability/GTest.h>
+#include <folly/portability/Time.h>
+
 using namespace ::folly::hash;
 
 static bool failed = false;
index 2cfe95f..100cc81 100644 (file)
@@ -22,9 +22,9 @@
 // will verify that the file actually gets created, which means that everything
 // worked as intended.
 
-#include <sys/types.h>
 #include <fcntl.h>
 #include <signal.h>
+#include <sys/types.h>
 
 #include <glog/logging.h>
 
index c95d0f1..db0f9c9 100644 (file)
@@ -24,8 +24,8 @@
 #include <folly/SharedMutex.h>
 #include <folly/SpinLock.h>
 #include <folly/Synchronized.h>
-#include <folly/test/SynchronizedTestLib.h>
 #include <folly/portability/GTest.h>
+#include <folly/test/SynchronizedTestLib.h>
 
 using namespace folly::sync_tests;
 
index e835ae9..458239d 100644 (file)
  */
 
 #include <folly/ThreadCachedArena.h>
-#include <folly/Memory.h>
 
+#include <algorithm>
+#include <iterator>
 #include <map>
 #include <mutex>
-#include <thread>
-#include <iterator>
-#include <algorithm>
 #include <random>
+#include <thread>
 #include <unordered_map>
 
 #include <glog/logging.h>
 
-#include <folly/Range.h>
 #include <folly/Benchmark.h>
+#include <folly/Memory.h>
+#include <folly/Range.h>
 #include <folly/portability/GTest.h>
 
 using namespace folly;
index 62526eb..2aeb205 100644 (file)
@@ -26,8 +26,8 @@
 #include <array>
 #include <atomic>
 #include <chrono>
+#include <climits>
 #include <condition_variable>
-#include <limits.h>
 #include <map>
 #include <mutex>
 #include <set>
index 6ca2a7f..f82d741 100644 (file)
@@ -168,18 +168,18 @@ THOUGHTS:
 
 //#define USING_STD_VECTOR
 
+#include <climits>
+#include <cstddef>
+#include <exception>
+#include <iomanip>
 #include <iostream>
-#include <sstream>
-#include <typeinfo>
-#include <type_traits>
 #include <map>
 #include <set>
-#include <string>
+#include <sstream>
 #include <stdexcept>
-#include <exception>
-#include <climits>
-#include <cstddef>
-#include <iomanip>
+#include <string>
+#include <type_traits>
+#include <typeinfo>
 
 #include <boost/iterator/iterator_adaptor.hpp>
 #include <boost/preprocessor.hpp>