Commit 520e20a8 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Sort #include lines

Summary: [Folly] Sort `#include` lines, as required by `clang-format`.

Reviewed By: igorsugak, Orvid

Differential Revision: D5405153

fbshipit-source-id: 3bb1c2b84271bcf7a195e07680777dbfdd499823
parent 4ac665a6
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <limits> #include <limits>
#include <stdexcept> #include <stdexcept>
#include <utility> #include <utility>
#include <boost/intrusive/slist.hpp> #include <boost/intrusive/slist.hpp>
#include <folly/Conv.h> #include <folly/Conv.h>
......
...@@ -86,9 +86,9 @@ ...@@ -86,9 +86,9 @@
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>
#include <boost/type_traits/is_convertible.hpp> #include <boost/type_traits/is_convertible.hpp>
#include <stdexcept>
#include <functional>
#include <atomic> #include <atomic>
#include <functional>
#include <stdexcept>
#include <folly/AtomicHashArray.h> #include <folly/AtomicHashArray.h>
#include <folly/Foreach.h> #include <folly/Foreach.h>
......
...@@ -17,11 +17,14 @@ ...@@ -17,11 +17,14 @@
#pragma once #pragma once
#include <atomic> #include <atomic>
#include <cstdint>
#include <functional> #include <functional>
#include <limits>
#include <stdexcept> #include <stdexcept>
#include <system_error> #include <system_error>
#include <type_traits> #include <type_traits>
#include <stdint.h>
#include <boost/type_traits/has_trivial_destructor.hpp>
#include <folly/Bits.h> #include <folly/Bits.h>
#include <folly/Conv.h> #include <folly/Conv.h>
...@@ -31,9 +34,6 @@ ...@@ -31,9 +34,6 @@
#include <folly/portability/SysMman.h> #include <folly/portability/SysMman.h>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
#include <boost/type_traits/has_trivial_destructor.hpp>
#include <limits>
namespace folly { namespace folly {
/// You're probably reading this because you are looking for an /// You're probably reading this because you are looking for an
......
...@@ -17,18 +17,20 @@ ...@@ -17,18 +17,20 @@
// @author Andrei Alexandrescu (andrei.alexandrescu@fb.com) // @author Andrei Alexandrescu (andrei.alexandrescu@fb.com)
#include <folly/Benchmark.h> #include <folly/Benchmark.h>
#include <folly/Foreach.h>
#include <folly/json.h>
#include <folly/String.h>
#include <algorithm> #include <algorithm>
#include <boost/regex.hpp>
#include <cmath> #include <cmath>
#include <cstring>
#include <iostream> #include <iostream>
#include <limits> #include <limits>
#include <utility> #include <utility>
#include <vector> #include <vector>
#include <cstring>
#include <boost/regex.hpp>
#include <folly/Foreach.h>
#include <folly/String.h>
#include <folly/json.h>
using namespace std; using namespace std;
......
...@@ -62,21 +62,21 @@ ...@@ -62,21 +62,21 @@
#define FOLLY_INTRINSIC_CONSTEXPR const #define FOLLY_INTRINSIC_CONSTEXPR const
#endif #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 <cassert>
#include <cstring>
#include <cinttypes> #include <cinttypes>
#include <cstdint>
#include <cstring>
#include <iterator> #include <iterator>
#include <limits> #include <limits>
#include <type_traits> #include <type_traits>
#include <boost/iterator/iterator_adaptor.hpp> #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 { namespace folly {
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <mutex> #include <mutex>
#include <type_traits> #include <type_traits>
#include <vector> #include <vector>
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>
#include <boost/random.hpp> #include <boost/random.hpp>
#include <boost/type_traits.hpp> #include <boost/type_traits.hpp>
......
...@@ -124,6 +124,7 @@ Sample usage: ...@@ -124,6 +124,7 @@ Sample usage:
#include <limits> #include <limits>
#include <memory> #include <memory>
#include <type_traits> #include <type_traits>
#include <boost/iterator/iterator_facade.hpp> #include <boost/iterator/iterator_facade.hpp>
#include <glog/logging.h> #include <glog/logging.h>
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#pragma once #pragma once
#include <cstdint> #include <cstdint>
#include <folly/Portability.h> #include <folly/Portability.h>
#ifdef _MSC_VER #ifdef _MSC_VER
......
...@@ -17,13 +17,13 @@ ...@@ -17,13 +17,13 @@
#include <folly/Demangle.h> #include <folly/Demangle.h>
#include <algorithm> #include <algorithm>
#include <string.h> #include <cstring>
#include <folly/Malloc.h> #include <folly/Malloc.h>
#include <folly/portability/Config.h> #include <folly/portability/Config.h>
#if FOLLY_HAVE_CPLUS_DEMANGLE_V3_CALLBACK #if FOLLY_HAVE_CPLUS_DEMANGLE_V3_CALLBACK
# include <cxxabi.h> #include <cxxabi.h>
// From libiberty // From libiberty
// //
......
...@@ -28,7 +28,9 @@ ...@@ -28,7 +28,9 @@
#include <limits> #include <limits>
#include <stdexcept> #include <stdexcept>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Likely.h> #include <folly/Likely.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/detail/DiscriminatedPtrDetail.h> #include <folly/detail/DiscriminatedPtrDetail.h>
......
...@@ -18,8 +18,15 @@ ...@@ -18,8 +18,15 @@
#pragma once #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/Traits.h>
#include <folly/dynamic.h>
namespace folly { namespace folly {
template <typename T> T convertTo(const dynamic&); template <typename T> T convertTo(const dynamic&);
...@@ -39,13 +46,6 @@ namespace folly { ...@@ -39,13 +46,6 @@ namespace folly {
* See docs/DynamicConverter.md for supported types and customization * 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 { namespace folly {
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
......
...@@ -20,10 +20,11 @@ ...@@ -20,10 +20,11 @@
#include <exception> #include <exception>
#include <functional> #include <functional>
#include <boost/utility.hpp>
#include <boost/intrusive/list.hpp> #include <boost/intrusive/list.hpp>
#include <boost/intrusive/unordered_set.hpp> #include <boost/intrusive/unordered_set.hpp>
#include <boost/iterator/iterator_adaptor.hpp> #include <boost/iterator/iterator_adaptor.hpp>
#include <boost/utility.hpp>
#include <folly/portability/BitsFunctexcept.h> #include <folly/portability/BitsFunctexcept.h>
namespace folly { namespace folly {
......
...@@ -16,6 +16,12 @@ ...@@ -16,6 +16,12 @@
#pragma once #pragma once
#include <sys/stat.h>
#include <sys/types.h>
#include <cassert>
#include <limits>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
...@@ -23,11 +29,6 @@ ...@@ -23,11 +29,6 @@
#include <folly/portability/SysUio.h> #include <folly/portability/SysUio.h>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
#include <cassert>
#include <limits>
#include <sys/stat.h>
#include <sys/types.h>
namespace folly { namespace folly {
/** /**
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#pragma once #pragma once
#include <stdexcept> #include <stdexcept>
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/Likely.h> #include <folly/Likely.h>
#include <folly/Portability.h> #include <folly/Portability.h>
......
...@@ -16,6 +16,11 @@ ...@@ -16,6 +16,11 @@
#pragma once #pragma once
#include <cstdint>
#include <limits>
#include <glog/logging.h>
#if !defined(__GNUC__) && !defined(_MSC_VER) #if !defined(__GNUC__) && !defined(_MSC_VER)
#error GroupVarint.h requires GCC or MSVC #error GroupVarint.h requires GCC or MSVC
#endif #endif
...@@ -25,13 +30,10 @@ ...@@ -25,13 +30,10 @@
#if FOLLY_X64 || defined(__i386__) || FOLLY_PPC64 || FOLLY_A64 #if FOLLY_X64 || defined(__i386__) || FOLLY_PPC64 || FOLLY_A64
#define HAVE_GROUP_VARINT 1 #define HAVE_GROUP_VARINT 1
#include <cstdint>
#include <limits>
#include <folly/detail/GroupVarintDetail.h>
#include <folly/Bits.h> #include <folly/Bits.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/detail/GroupVarintDetail.h>
#include <folly/portability/Builtins.h> #include <folly/portability/Builtins.h>
#include <glog/logging.h>
#if FOLLY_SSE >= 3 #if FOLLY_SSE >= 3
#include <nmmintrin.h> #include <nmmintrin.h>
......
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
#include <string> #include <string>
#include <utility> // std::pair #include <utility> // std::pair
#include <folly/Range.h>
#include <folly/IPAddressException.h> #include <folly/IPAddressException.h>
#include <folly/IPAddressV4.h> #include <folly/IPAddressV4.h>
#include <folly/IPAddressV6.h> #include <folly/IPAddressV6.h>
#include <folly/Range.h>
#include <folly/detail/IPAddress.h> #include <folly/detail/IPAddress.h>
namespace folly { namespace folly {
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#pragma once #pragma once
#include <utility>
#include <type_traits> #include <type_traits>
#include <utility>
#include <folly/Optional.h> #include <folly/Optional.h>
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
#pragma once #pragma once
#include <string.h>
#include <stdint.h>
#include <atomic>
#include <algorithm> #include <algorithm>
#include <atomic>
#include <cstdint>
#include <cstring>
#include <memory> #include <memory>
#include <system_error> #include <system_error>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <atomic> #include <atomic>
#include <chrono> #include <chrono>
#include <glog/logging.h> #include <glog/logging.h>
#ifndef FB_LOG_EVERY_MS #ifndef FB_LOG_EVERY_MS
......
...@@ -18,12 +18,13 @@ ...@@ -18,12 +18,13 @@
#include <algorithm> #include <algorithm>
#include <atomic> #include <atomic>
#include <assert.h> #include <cassert>
#include <boost/noncopyable.hpp> #include <cstring>
#include <limits> #include <limits>
#include <string.h>
#include <type_traits> #include <type_traits>
#include <boost/noncopyable.hpp>
#include <folly/Traits.h> #include <folly/Traits.h>
#include <folly/concurrency/CacheLocality.h> #include <folly/concurrency/CacheLocality.h>
#include <folly/detail/TurnSequencer.h> #include <folly/detail/TurnSequencer.h>
......
...@@ -16,10 +16,11 @@ ...@@ -16,10 +16,11 @@
#pragma once #pragma once
#include <boost/noncopyable.hpp>
#include <glog/logging.h>
#include <folly/File.h> #include <folly/File.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <glog/logging.h>
#include <boost/noncopyable.hpp>
namespace folly { namespace folly {
......
...@@ -16,11 +16,12 @@ ...@@ -16,11 +16,12 @@
#pragma once #pragma once
#include <assert.h> #include <cassert>
#include <climits> #include <climits>
#include <stdint.h> #include <cstdint>
#include <folly/detail/Futex.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/detail/Futex.h>
#if defined(__clang__) #if defined(__clang__)
#define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address)) #define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
......
...@@ -38,16 +38,17 @@ ...@@ -38,16 +38,17 @@
*/ */
#include <array> #include <array>
#include <atomic>
#include <cinttypes> #include <cinttypes>
#include <type_traits>
#include <boost/noncopyable.hpp>
#include <cstdlib> #include <cstdlib>
#include <mutex> #include <mutex>
#include <atomic> #include <type_traits>
#include <boost/noncopyable.hpp>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/detail/Sleeper.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/detail/Sleeper.h>
namespace folly { namespace folly {
......
...@@ -16,10 +16,15 @@ ...@@ -16,10 +16,15 @@
#pragma once #pragma once
#include <type_traits>
#include <glog/logging.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/SmallLocks.h>
#if !FOLLY_X64 && !FOLLY_PPC64 && !FOLLY_A64 #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 #endif
/* /*
...@@ -52,10 +57,6 @@ ...@@ -52,10 +57,6 @@
* @author Jordan DeLong <delong.j@fb.com> * @author Jordan DeLong <delong.j@fb.com>
*/ */
#include <folly/SmallLocks.h>
#include <type_traits>
#include <glog/logging.h>
namespace folly { namespace folly {
template<class T> template<class T>
......
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
#include <boost/iterator/iterator_adaptor.hpp> #include <boost/iterator/iterator_adaptor.hpp>
#include <folly/Portability.h>
#include <folly/ContainerTraits.h> #include <folly/ContainerTraits.h>
#include <folly/Portability.h>
/** /**
* Code that aids in storing data aligned on block (possibly cache-line) * Code that aids in storing data aligned on block (possibly cache-line)
......
...@@ -42,15 +42,16 @@ ...@@ -42,15 +42,16 @@
#include <atomic> #include <atomic>
#include <cinttypes> #include <cinttypes>
#include <cstdlib> #include <cstdlib>
#include <folly/Portability.h>
#include <mutex> #include <mutex>
#include <type_traits> #include <type_traits>
#include <folly/detail/Sleeper.h>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Portability.h>
#include <folly/detail/Sleeper.h>
#if !FOLLY_X64 && !FOLLY_A64 && !FOLLY_PPC64 #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 #endif
namespace folly { namespace folly {
......
...@@ -138,15 +138,13 @@ pthread_rwlock_t Read 728698 24us 101ns 7.28ms 194us ...@@ -138,15 +138,13 @@ pthread_rwlock_t Read 728698 24us 101ns 7.28ms 194us
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/portability/Asm.h> #include <folly/portability/Asm.h>
#if defined(__GNUC__) && \ #if defined(__GNUC__) && (defined(__i386) || FOLLY_X64 || defined(ARCH_K8))
(defined(__i386) || FOLLY_X64 || \ #define RW_SPINLOCK_USE_X86_INTRINSIC_
defined(ARCH_K8)) #include <x86intrin.h>
# define RW_SPINLOCK_USE_X86_INTRINSIC_
# include <x86intrin.h>
#elif defined(_MSC_VER) && defined(FOLLY_X64) #elif defined(_MSC_VER) && defined(FOLLY_X64)
# define RW_SPINLOCK_USE_X86_INTRINSIC_ #define RW_SPINLOCK_USE_X86_INTRINSIC_
#else #else
# undef RW_SPINLOCK_USE_X86_INTRINSIC_ #undef RW_SPINLOCK_USE_X86_INTRINSIC_
#endif #endif
// iOS doesn't define _mm_cvtsi64_si128 and friends // iOS doesn't define _mm_cvtsi64_si128 and friends
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
#include <folly/Random.h> #include <folly/Random.h>
#include <array>
#include <atomic> #include <atomic>
#include <mutex> #include <mutex>
#include <random> #include <random>
#include <array>
#include <folly/CallOnce.h> #include <folly/CallOnce.h>
#include <folly/File.h> #include <folly/File.h>
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <glog/logging.h> #include <glog/logging.h>
#ifdef _MSC_VER #ifdef _MSC_VER
# include <wincrypt.h> // @manual #include <wincrypt.h> // @manual
#endif #endif
namespace folly { namespace folly {
......
...@@ -17,9 +17,10 @@ ...@@ -17,9 +17,10 @@
#pragma once #pragma once
#define FOLLY_RANDOM_H_ #define FOLLY_RANDOM_H_
#include <type_traits> #include <cstdint>
#include <random> #include <random>
#include <stdint.h> #include <type_traits>
#include <folly/Portability.h> #include <folly/Portability.h>
#if FOLLY_HAVE_EXTRANDOM_SFMT19937 #if FOLLY_HAVE_EXTRANDOM_SFMT19937
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#pragma once #pragma once
#include <folly/ThreadLocal.h>
#include <folly/Singleton.h> #include <folly/Singleton.h>
#include <folly/ThreadLocal.h>
namespace folly { namespace folly {
......
...@@ -20,18 +20,19 @@ ...@@ -20,18 +20,19 @@
#include <folly/SocketAddress.h> #include <folly/SocketAddress.h>
#include <folly/CppAttributes.h> #include <cerrno>
#include <folly/Exception.h> #include <cstdio>
#include <folly/Hash.h> #include <cstring>
#include <boost/functional/hash.hpp>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <sstream> #include <sstream>
#include <string> #include <string>
#include <system_error> #include <system_error>
#include <boost/functional/hash.hpp>
#include <folly/CppAttributes.h>
#include <folly/Exception.h>
#include <folly/Hash.h>
namespace { namespace {
/** /**
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#pragma once #pragma once
#include <cstdint> #include <cstdint>
#include <glog/logging.h> #include <glog/logging.h>
namespace folly { namespace folly {
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#pragma once #pragma once
#include <stdexcept>
#include <iterator> #include <iterator>
#include <stdexcept>
#include <folly/CppAttributes.h> #include <folly/CppAttributes.h>
......
...@@ -16,17 +16,17 @@ ...@@ -16,17 +16,17 @@
#include <folly/String.h> #include <folly/String.h>
#include <folly/ScopeGuard.h> #include <cctype>
#include <cerrno> #include <cerrno>
#include <cstdarg> #include <cstdarg>
#include <cstring> #include <cstring>
#include <stdexcept>
#include <iterator> #include <iterator>
#include <cctype> #include <stdexcept>
#include <string.h>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/ScopeGuard.h>
namespace folly { namespace folly {
static inline bool is_oddspace(char c) { static inline bool is_oddspace(char c) {
......
...@@ -17,15 +17,15 @@ ...@@ -17,15 +17,15 @@
#pragma once #pragma once
#define FOLLY_STRING_H_ #define FOLLY_STRING_H_
#include <cstdarg>
#include <exception> #include <exception>
#include <stdarg.h>
#include <string> #include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector> #include <vector>
#include <boost/type_traits.hpp>
#include <boost/regex/pending/unicode_iterator.hpp>
#include <unordered_set> #include <boost/regex/pending/unicode_iterator.hpp>
#include <unordered_map> #include <boost/type_traits.hpp>
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/ExceptionString.h> #include <folly/ExceptionString.h>
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
#endif #endif
#include <fcntl.h> #include <fcntl.h>
#include <array>
#include <algorithm> #include <algorithm>
#include <array>
#include <system_error> #include <system_error>
#include <boost/container/flat_set.hpp> #include <boost/container/flat_set.hpp>
......
...@@ -93,8 +93,9 @@ ...@@ -93,8 +93,9 @@
#pragma once #pragma once
#include <sys/types.h>
#include <signal.h> #include <signal.h>
#include <sys/types.h>
#if __APPLE__ #if __APPLE__
#include <sys/wait.h> #include <sys/wait.h>
#else #else
...@@ -102,8 +103,8 @@ ...@@ -102,8 +103,8 @@
#endif #endif
#include <exception> #include <exception>
#include <vector>
#include <string> #include <string>
#include <vector>
#include <boost/container/flat_map.hpp> #include <boost/container/flat_map.hpp>
......
...@@ -27,12 +27,13 @@ ...@@ -27,12 +27,13 @@
#pragma once #pragma once
#include <stdint.h> #include <cstdint>
#include <functional> #include <functional>
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/indexed_by.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/member.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index_container.hpp>
namespace folly { namespace folly {
......
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
#pragma once #pragma once
#include <memory> #include <functional>
#include <limits> #include <limits>
#include <memory>
#include <type_traits> #include <type_traits>
#include <functional>
#include <folly/Portability.h> #include <folly/Portability.h>
......
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
#include <folly/Uri.h> #include <folly/Uri.h>
#include <ctype.h> #include <cctype>
#include <boost/regex.hpp> #include <boost/regex.hpp>
namespace folly { namespace folly {
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
#define __STDC_FORMAT_MACROS 1 #define __STDC_FORMAT_MACROS 1
#endif #endif
#include <cstdio>
#include <cinttypes> #include <cinttypes>
#include <cstdio>
#include <string> #include <string>
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#pragma once #pragma once
#include <thread> #include <thread>
#include <folly/portability/Asm.h> #include <folly/portability/Asm.h>
// Some utilities used by AtomicHashArray and AtomicHashMap // Some utilities used by AtomicHashArray and AtomicHashMap
......
/*
* 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 #pragma once
#include <atomic> #include <atomic>
#include <stdint.h> #include <cstdint>
#include <folly/portability/SysMman.h> #include <folly/portability/SysMman.h>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <iterator> #include <iterator>
#include <type_traits> #include <type_traits>
#include <boost/iterator/iterator_adaptor.hpp> #include <boost/iterator/iterator_adaptor.hpp>
namespace folly { namespace folly {
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#pragma once #pragma once
#include <utility>
#include <type_traits> #include <type_traits>
#include <utility>
namespace folly { namespace folly {
namespace dptr_detail { namespace dptr_detail {
......
...@@ -17,9 +17,10 @@ ...@@ -17,9 +17,10 @@
#pragma once #pragma once
#include <atomic> #include <atomic>
#include <cassert>
#include <chrono> #include <chrono>
#include <limits> #include <limits>
#include <assert.h>
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
......
...@@ -16,8 +16,10 @@ ...@@ -16,8 +16,10 @@
#pragma once #pragma once
#include <string>
#include <sys/types.h> #include <sys/types.h>
#include <string>
#include <folly/portability/Sockets.h> #include <folly/portability/Sockets.h>
namespace folly { namespace detail { namespace folly { namespace detail {
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <atomic> #include <atomic>
#include <chrono> #include <chrono>
#include <folly/AtomicStruct.h> #include <folly/AtomicStruct.h>
#include <folly/Hash.h> #include <folly/Hash.h>
#include <folly/ThreadId.h> #include <folly/ThreadId.h>
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <folly/detail/RangeCommon.h> #include <folly/detail/RangeCommon.h>
#include <bitset> #include <bitset>
#include <folly/SparseByteSet.h> #include <folly/SparseByteSet.h>
namespace folly { namespace folly {
......
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
#include <algorithm> #include <algorithm>
#include <string> #include <string>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Likely.h> #include <folly/Likely.h>
namespace folly { namespace folly {
......
...@@ -14,9 +14,10 @@ ...@@ -14,9 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
#include "RangeSse42.h" #include <folly/detail/RangeSse42.h>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Portability.h> #include <folly/Portability.h>
// Essentially, two versions of this file: one with an SSE42 implementation // Essentially, two versions of this file: one with an SSE42 implementation
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#pragma once #pragma once
#include <cstddef> #include <cstddef>
#include <folly/detail/RangeCommon.h> #include <folly/detail/RangeCommon.h>
namespace folly { namespace folly {
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#pragma once #pragma once
#include <folly/Fingerprint.h> #include <folly/Fingerprint.h>
#include <folly/detail/FingerprintPolynomial.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/detail/FingerprintPolynomial.h>
namespace folly { namespace folly {
namespace detail { namespace detail {
......
...@@ -17,11 +17,13 @@ ...@@ -17,11 +17,13 @@
#pragma once #pragma once
#include <functional> #include <functional>
#include <boost/iterator/iterator_adaptor.hpp> #include <boost/iterator/iterator_adaptor.hpp>
#include <boost/iterator/iterator_facade.hpp> #include <boost/iterator/iterator_facade.hpp>
#include <folly/Likely.h>
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/Format.h> #include <folly/Format.h>
#include <folly/Likely.h>
////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////
......
...@@ -17,8 +17,9 @@ ...@@ -17,8 +17,9 @@
#pragma once #pragma once
#include <cstddef> #include <cstddef>
#include <type_traits>
#include <limits> #include <limits>
#include <type_traits>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Bits.h> #include <folly/Bits.h>
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
*/ */
#pragma once #pragma once
#include <folly/Conv.h>
#include <boost/function_types/is_member_pointer.hpp> #include <boost/function_types/is_member_pointer.hpp>
#include <boost/function_types/parameter_types.hpp> #include <boost/function_types/parameter_types.hpp>
#include <boost/mpl/equal.hpp> #include <boost/mpl/equal.hpp>
...@@ -32,6 +31,8 @@ ...@@ -32,6 +31,8 @@
#include <boost/mpl/transform.hpp> #include <boost/mpl/transform.hpp>
#include <boost/mpl/vector.hpp> #include <boost/mpl/vector.hpp>
#include <folly/Conv.h>
namespace folly { namespace folly {
// Auto-conversion of key/value based on callback signature, documented in // Auto-conversion of key/value based on callback signature, documented in
......
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
*/ */
#pragma once #pragma once
#include <folly/dynamic.h>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
#include <folly/dynamic.h>
namespace folly { namespace folly {
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/Memory.h> #include <folly/Memory.h>
#include <folly/Optional.h> #include <folly/Optional.h>
#include <folly/String.h>
#include <folly/Singleton.h> #include <folly/Singleton.h>
#include <folly/String.h>
#include <folly/json.h> #include <folly/json.h>
namespace folly { namespace folly {
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
#pragma once #pragma once
#include <folly/ExceptionWrapper.h> #include <folly/ExceptionWrapper.h>
#include <folly/dynamic.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/dynamic.h>
/** /**
* Validation according to the draft v4 standard: http://json-schema.org/ * Validation according to the draft v4 standard: http://json-schema.org/
......
...@@ -17,12 +17,13 @@ ...@@ -17,12 +17,13 @@
#pragma once #pragma once
#include <atomic> #include <atomic>
#include <boost/noncopyable.hpp>
#include <cmath> #include <cmath>
#include <cstring>
#include <memory> #include <memory>
#include <string.h>
#include <type_traits> #include <type_traits>
#include <boost/noncopyable.hpp>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/detail/TurnSequencer.h> #include <folly/detail/TurnSequencer.h>
#include <folly/portability/TypeTraits.h> #include <folly/portability/TypeTraits.h>
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <folly/experimental/NestedCommandLineApp.h> #include <folly/experimental/NestedCommandLineApp.h>
#include <iostream> #include <iostream>
#include <folly/FileUtil.h> #include <folly/FileUtil.h>
#include <folly/Format.h> #include <folly/Format.h>
#include <folly/experimental/io/FsUtil.h> #include <folly/experimental/io/FsUtil.h>
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
#pragma once #pragma once
#include <memory> #include <memory>
#include <folly/Range.h> #include <folly/Range.h>
namespace folly { namespace folly {
......
...@@ -19,8 +19,9 @@ ...@@ -19,8 +19,9 @@
#pragma once #pragma once
#include <initializer_list> #include <initializer_list>
#include <memory>
#include <map> #include <map>
#include <memory>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/experimental/StringKeyedCommon.h> #include <folly/experimental/StringKeyedCommon.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <initializer_list> #include <initializer_list>
#include <memory> #include <memory>
#include <set> #include <set>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/experimental/StringKeyedCommon.h> #include <folly/experimental/StringKeyedCommon.h>
......
...@@ -16,10 +16,11 @@ ...@@ -16,10 +16,11 @@
#include <folly/experimental/TestUtil.h> #include <folly/experimental/TestUtil.h>
#include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h>
#include <boost/regex.hpp> #include <boost/regex.hpp>
#include <folly/Exception.h> #include <folly/Exception.h>
#include <folly/File.h> #include <folly/File.h>
#include <folly/FileUtil.h> #include <folly/FileUtil.h>
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <map> #include <map>
#include <string> #include <string>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
#include <folly/experimental/io/FsUtil.h> #include <folly/experimental/io/FsUtil.h>
......
...@@ -13,7 +13,9 @@ ...@@ -13,7 +13,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include "Bser.h"
#include <folly/experimental/bser/Bser.h>
#include <folly/io/Cursor.h> #include <folly/io/Cursor.h>
using namespace folly; using namespace folly;
......
...@@ -13,9 +13,11 @@ ...@@ -13,9 +13,11 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include "Bser.h"
#include <folly/io/Cursor.h> #include <folly/experimental/bser/Bser.h>
#include <folly/String.h> #include <folly/String.h>
#include <folly/io/Cursor.h>
using namespace folly; using namespace folly;
using folly::io::Cursor; using folly::io::Cursor;
......
...@@ -13,7 +13,9 @@ ...@@ -13,7 +13,9 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <folly/experimental/bser/Bser.h> #include <folly/experimental/bser/Bser.h>
#include <folly/String.h> #include <folly/String.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
......
...@@ -17,13 +17,13 @@ ...@@ -17,13 +17,13 @@
#define HAZPTR_STATS true #define HAZPTR_STATS true
#define HAZPTR_SCAN_THRESHOLD 10 #define HAZPTR_SCAN_THRESHOLD 10
#include <folly/experimental/hazptr/test/HazptrUse1.h> #include <folly/experimental/hazptr/debug.h>
#include <folly/experimental/hazptr/test/HazptrUse2.h>
#include <folly/experimental/hazptr/example/LockFreeLIFO.h> #include <folly/experimental/hazptr/example/LockFreeLIFO.h>
#include <folly/experimental/hazptr/example/SWMRList.h> #include <folly/experimental/hazptr/example/SWMRList.h>
#include <folly/experimental/hazptr/example/WideCAS.h> #include <folly/experimental/hazptr/example/WideCAS.h>
#include <folly/experimental/hazptr/debug.h>
#include <folly/experimental/hazptr/hazptr.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/GFlags.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#pragma once #pragma once
#include <sys/types.h> #include <sys/types.h>
#include <libaio.h>
#include <atomic> #include <atomic>
#include <cstdint> #include <cstdint>
...@@ -29,6 +28,7 @@ ...@@ -29,6 +28,7 @@
#include <vector> #include <vector>
#include <boost/noncopyable.hpp> #include <boost/noncopyable.hpp>
#include <libaio.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/Range.h> #include <folly/Range.h>
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
#include <folly/experimental/io/HugePages.h> #include <folly/experimental/io/HugePages.h>
#include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <fcntl.h>
#include <cctype> #include <cctype>
#include <cstring> #include <cstring>
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
#include <folly/experimental/io/AsyncIO.h> #include <folly/experimental/io/AsyncIO.h>
#include <fcntl.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/types.h> #include <sys/types.h>
#include <fcntl.h>
#include <cstdlib>
#include <cstdio> #include <cstdio>
#include <cstdlib>
#include <memory> #include <memory>
#include <random> #include <random>
#include <thread> #include <thread>
...@@ -29,9 +29,9 @@ ...@@ -29,9 +29,9 @@
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/experimental/io/FsUtil.h>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
#include <folly/String.h> #include <folly/String.h>
#include <folly/experimental/io/FsUtil.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
#include <folly/portability/Sockets.h> #include <folly/portability/Sockets.h>
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
#include <boost/variant.hpp> #include <boost/variant.hpp>
#include <folly/experimental/symbolizer/Elf.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/experimental/symbolizer/Elf.h>
namespace folly { namespace folly {
namespace symbolizer { namespace symbolizer {
......
...@@ -19,10 +19,10 @@ ...@@ -19,10 +19,10 @@
#pragma once #pragma once
#define FOLLY_EXPERIMENTAL_SYMBOLIZER_ELF_H_ #define FOLLY_EXPERIMENTAL_SYMBOLIZER_ELF_H_
#include <stdio.h>
#include <elf.h> #include <elf.h>
#include <link.h> // For ElfW() #include <link.h> // For ElfW()
#include <cstdio>
#include <stdexcept> #include <stdexcept>
#include <system_error> #include <system_error>
......
...@@ -16,17 +16,17 @@ ...@@ -16,17 +16,17 @@
#pragma once #pragma once
#include <climits> // for PATH_MAX
#include <cstring> #include <cstring>
#include <limits.h> // for PATH_MAX
#include <memory> #include <memory>
#include <mutex> #include <mutex>
#include <string> #include <string>
#include <vector>
#include <unordered_map> #include <unordered_map>
#include <vector>
#include <boost/operators.hpp>
#include <boost/container/flat_map.hpp> #include <boost/container/flat_map.hpp>
#include <boost/intrusive/list.hpp> #include <boost/intrusive/list.hpp>
#include <boost/operators.hpp>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Hash.h> #include <folly/Hash.h>
......
...@@ -16,11 +16,12 @@ ...@@ -16,11 +16,12 @@
#include <folly/experimental/symbolizer/Symbolizer.h> #include <folly/experimental/symbolizer/Symbolizer.h>
#include <link.h>
#include <climits>
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
#include <limits.h>
#include <link.h>
#ifdef __GNUC__ #ifdef __GNUC__
#include <ext/stdio_filebuf.h> #include <ext/stdio_filebuf.h>
......
...@@ -24,11 +24,11 @@ ...@@ -24,11 +24,11 @@
#include <folly/FBString.h> #include <folly/FBString.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/String.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/Elf.h>
#include <folly/experimental/symbolizer/ElfCache.h> #include <folly/experimental/symbolizer/ElfCache.h>
#include <folly/experimental/symbolizer/Dwarf.h>
#include <folly/experimental/symbolizer/StackTrace.h> #include <folly/experimental/symbolizer/StackTrace.h>
#include <folly/io/IOBuf.h>
namespace folly { namespace folly {
namespace symbolizer { namespace symbolizer {
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
#include <folly/experimental/symbolizer/test/SignalHandlerTest.h> #include <folly/experimental/symbolizer/test/SignalHandlerTest.h>
#include <folly/experimental/symbolizer/SignalHandler.h> #include <folly/experimental/symbolizer/SignalHandler.h>
#include <folly/CPortability.h>
#include <folly/FileUtil.h> #include <folly/FileUtil.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/CPortability.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
namespace folly { namespace symbolizer { namespace test { namespace folly { namespace symbolizer { namespace test {
......
...@@ -13,10 +13,12 @@ ...@@ -13,10 +13,12 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <atomic> #include <atomic>
#include <glog/logging.h>
#include <random>
#include <memory> #include <memory>
#include <random>
#include <glog/logging.h>
#include <folly/Benchmark.h> #include <folly/Benchmark.h>
#include <folly/experimental/Bits.h> #include <folly/experimental/Bits.h>
......
...@@ -21,8 +21,9 @@ ...@@ -21,8 +21,9 @@
#include <limits> #include <limits>
#include <random> #include <random>
#include <string> #include <string>
#include <vector>
#include <unordered_set> #include <unordered_set>
#include <vector>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <random> #include <random>
#include <thread> #include <thread>
#include <vector> #include <vector>
#include <glog/logging.h> #include <glog/logging.h>
#include <folly/Random.h> #include <folly/Random.h>
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
* limitations under the License. * limitations under the License.
*/ */
#include <folly/experimental/FlatCombiningPriorityQueue.h>
#include <folly/Benchmark.h> #include <folly/Benchmark.h>
#include <folly/experimental/FlatCombiningPriorityQueue.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
#include <glog/logging.h> #include <glog/logging.h>
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
#include <thread> #include <thread>
#include <folly/experimental/LockFreeRingBuffer.h> #include <folly/experimental/LockFreeRingBuffer.h>
#include <folly/test/DeterministicSchedule.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
#include <folly/test/DeterministicSchedule.h>
namespace folly { namespace folly {
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
// Implements two commands: "cat" and "echo", which behave similarly to their // Implements two commands: "cat" and "echo", which behave similarly to their
// Unix homonyms. // Unix homonyms.
#include <folly/String.h>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
#include <folly/String.h>
#include <folly/experimental/NestedCommandLineApp.h> #include <folly/experimental/NestedCommandLineApp.h>
#include <folly/experimental/ProgramOptions.h> #include <folly/experimental/ProgramOptions.h>
......
...@@ -15,9 +15,11 @@ ...@@ -15,9 +15,11 @@
*/ */
#include <iostream> #include <iostream>
#include <glog/logging.h>
#include <folly/Conv.h> #include <folly/Conv.h>
#include <folly/experimental/ProgramOptions.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_true, true, "Bool with true default value");
DEFINE_bool(flag_bool_false, false, "Bool with false default value"); DEFINE_bool(flag_bool_false, false, "Bool with false default value");
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
/* -*- Mode: C++; tab-width: 2; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* -*- Mode: C++; tab-width: 2; c-basic-offset: 2; indent-tabs-mode: nil -*- */
#include <atomic> #include <atomic>
#include <thread>
#include <mutex>
#include <folly/Memory.h>
#include <condition_variable> #include <condition_variable>
#include <mutex>
#include <thread>
#include <folly/Baton.h> #include <folly/Baton.h>
#include <folly/Memory.h>
#include <folly/experimental/RCURefCount.h> #include <folly/experimental/RCURefCount.h>
#include <folly/experimental/ReadMostlySharedPtr.h> #include <folly/experimental/ReadMostlySharedPtr.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
......
...@@ -21,11 +21,12 @@ ...@@ -21,11 +21,12 @@
#include <chrono> #include <chrono>
#include <random> #include <random>
#include <thread> #include <thread>
#include <folly/Baton.h> #include <folly/Baton.h>
#include <folly/Optional.h> #include <folly/Optional.h>
#include <folly/Random.h> #include <folly/Random.h>
#include <folly/futures/detail/Core.h>
#include <folly/futures/Timekeeper.h> #include <folly/futures/Timekeeper.h>
#include <folly/futures/detail/Core.h>
#if FOLLY_MOBILE || defined(__APPLE__) #if FOLLY_MOBILE || defined(__APPLE__)
#define FOLLY_FUTURE_USING_FIBER 0 #define FOLLY_FUTURE_USING_FIBER 0
......
...@@ -13,9 +13,10 @@ ...@@ -13,9 +13,10 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <folly/futures/Future.h> #include <folly/futures/Future.h>
#include <folly/futures/ThreadWheelTimekeeper.h>
#include <folly/Likely.h> #include <folly/Likely.h>
#include <folly/futures/ThreadWheelTimekeeper.h>
namespace folly { namespace folly {
......
...@@ -15,13 +15,15 @@ ...@@ -15,13 +15,15 @@
*/ */
#pragma once #pragma once
#include <folly/LifoSem.h>
#include <folly/futures/DrivableExecutor.h> #include <cstdio>
#include <folly/futures/ScheduledExecutor.h>
#include <memory> #include <memory>
#include <mutex> #include <mutex>
#include <queue> #include <queue>
#include <cstdio>
#include <folly/LifoSem.h>
#include <folly/futures/DrivableExecutor.h>
#include <folly/futures/ScheduledExecutor.h>
namespace folly { namespace folly {
/// A ManualExecutor only does work when you turn the crank, by calling /// A ManualExecutor only does work when you turn the crank, by calling
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#pragma once #pragma once
#include <folly/futures/Promise.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/futures/Promise.h>
namespace folly { namespace folly {
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
#pragma once #pragma once
#include <folly/futures/detail/Types.h>
#include <folly/Unit.h> #include <folly/Unit.h>
#include <folly/futures/detail/Types.h>
namespace folly { namespace folly {
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <atomic> #include <atomic>
#include <mutex> #include <mutex>
#include <folly/MicroSpinLock.h> #include <folly/MicroSpinLock.h>
namespace folly { namespace detail { namespace folly { namespace detail {
......
...@@ -13,9 +13,11 @@ ...@@ -13,9 +13,11 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include "Koan.h"
#include <folly/futures/Future.h> #include <folly/futures/Future.h>
#include "Koan.h"
using folly::Future; using folly::Future;
using folly::makeFuture; using folly::makeFuture;
......
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#pragma once #pragma once
#include <folly/Portability.h>
#include <gtest/gtest.h>
#include <gflags/gflags.h> #include <gflags/gflags.h>
#include <gtest/gtest.h>
#include <folly/Portability.h>
...@@ -18,10 +18,10 @@ ...@@ -18,10 +18,10 @@
#include <boost/thread/barrier.hpp> #include <boost/thread/barrier.hpp>
#include <folly/futures/Future.h>
#include <folly/Random.h> #include <folly/Random.h>
#include <folly/small_vector.h> #include <folly/futures/Future.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
#include <folly/small_vector.h>
using namespace folly; using namespace folly;
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
* limitations under the License. * limitations under the License.
*/ */
#include <folly/Baton.h>
#include <folly/futures/Future.h> #include <folly/futures/Future.h>
#include <folly/futures/InlineExecutor.h> #include <folly/futures/InlineExecutor.h>
#include <folly/futures/ManualExecutor.h> #include <folly/futures/ManualExecutor.h>
#include <folly/futures/QueuedImmediateExecutor.h> #include <folly/futures/QueuedImmediateExecutor.h>
#include <folly/Baton.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
using namespace folly; using namespace folly;
......
...@@ -14,12 +14,12 @@ ...@@ -14,12 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
#include <folly/futures/Future.h> #include <folly/Baton.h>
#include <folly/Unit.h>
#include <folly/Memory.h>
#include <folly/Executor.h> #include <folly/Executor.h>
#include <folly/Memory.h>
#include <folly/Unit.h>
#include <folly/dynamic.h> #include <folly/dynamic.h>
#include <folly/Baton.h> #include <folly/futures/Future.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
#include <algorithm> #include <algorithm>
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
// amazing what things can go wrong if you include things in an unexpected // amazing what things can go wrong if you include things in an unexpected
// order. // order.
#include <folly/Try.h> #include <folly/Try.h>
#include <folly/futures/Promise.h>
#include <folly/futures/Future.h> #include <folly/futures/Future.h>
#include <folly/futures/Promise.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
TEST(Basic, compiles) { TEST(Basic, compiles) {
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
#include <folly/Baton.h>
#include <folly/futures/Future.h> #include <folly/futures/Future.h>
#include <folly/futures/Promise.h> #include <folly/futures/Promise.h>
#include <folly/Baton.h>
#include <folly/portability/GTest.h> #include <folly/portability/GTest.h>
using namespace folly; using namespace folly;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment