Enable auto-deps in all of Folly
authorChristopher Dykes <cdykes@fb.com>
Mon, 28 Aug 2017 22:13:58 +0000 (15:13 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 28 Aug 2017 22:22:19 +0000 (15:22 -0700)
Summary: This enables the last of the magic internally.

Reviewed By: yfeldblum

Differential Revision: D5719795

fbshipit-source-id: fb59a0d7873e9a9f3b73f556b42b647091ca7e67

14 files changed:
folly/AUTODEPS [new file with mode: 0644]
folly/IPAddressV6.cpp
folly/portability/Config.h
folly/portability/Event.h
folly/portability/Malloc.cpp
folly/portability/Sockets.cpp
folly/portability/Sockets.h
folly/portability/Stdlib.h
folly/portability/SysMembarrier.cpp
folly/portability/SysTypes.h
folly/portability/Time.cpp
folly/portability/Unistd.cpp
folly/portability/Unistd.h
folly/portability/Windows.h

diff --git a/folly/AUTODEPS b/folly/AUTODEPS
new file mode 100644 (file)
index 0000000..e69de29
index 45391b40232ccc4fef193184b892a00d65b65b61..be909315f147b2c35ecb970062f4d4bfd179e25e 100644 (file)
@@ -31,8 +31,8 @@
 // Because of the massive pain that is libnl, this can't go into the socket
 // portability header as you can't include <linux/if.h> and <net/if.h> in
 // the same translation unit without getting errors -_-...
-#include <iphlpapi.h>
-#include <ntddndis.h>
+#include <iphlpapi.h> // @manual
+#include <ntddndis.h> // @manual
 
 // Alias the max size of an interface name to what posix expects.
 #define IFNAMSIZ IF_NAMESIZE
index 1e4c6eda720382382f060ac23bbc44c465eaec62..67dab0448e51ca515f9caca3bc39fee0fc001a6b 100755 (executable)
 #endif
 
 #if FOLLY_HAVE_FEATURES_H
-#include <features.h>
+#include <features.h> // @manual
 #endif
 
 #ifdef __ANDROID__
-#include <android/api-level.h>
+#include <android/api-level.h> // @manual
 #endif
 
 #ifdef __APPLE__
-#include <Availability.h>
+#include <Availability.h> // @manual
 #endif
index 1d6fe86ac01b245a8dba3038372b39fcf6064c33..fb836d56f3cd44fe3e20c71f0ec1a91432d0404e 100644 (file)
@@ -24,7 +24,7 @@
 #include <event.h>
 
 #ifdef _MSC_VER
-#include <event2/event_compat.h>
+#include <event2/event_compat.h> // @manual
 #include <folly/portability/Fcntl.h>
 #endif
 
index b41de5a2c5758bd809deb0658452693bd24927d2..0040d379f745ac42e4821b71c5b00fd540191df9 100755 (executable)
@@ -18,7 +18,7 @@
 
 #if !defined(USE_JEMALLOC) && !defined(FOLLY_USE_JEMALLOC)
 #if defined(__APPLE__) && !defined(FOLLY_HAVE_MALLOC_USABLE_SIZE)
-#include <malloc/malloc.h>
+#include <malloc/malloc.h> // @manual
 
 extern "C" size_t malloc_usable_size(void* ptr) {
   return malloc_size(ptr);
index db1c2fb1e47991a54fe7d61a572978b5e17a36c9..414aec0372ebe1bc5f8cc92e76ec482c02aa6f36 100644 (file)
@@ -21,9 +21,9 @@
 #include <errno.h>
 #include <fcntl.h>
 
-#include <event2/util.h>
+#include <event2/util.h> // @manual
 
-#include <MSWSock.h>
+#include <MSWSock.h> // @manual
 
 #include <folly/ScopeGuard.h>
 
index 74060df1b8a211dc7f8db76ed69c390b66909803..f1617fc923dcc496f6834d84fcbbd685a454bdcb 100755 (executable)
@@ -30,7 +30,7 @@
 #include <folly/portability/SysTypes.h>
 #include <folly/portability/Windows.h>
 
-#include <WS2tcpip.h>
+#include <WS2tcpip.h> // @manual
 
 using nfds_t = int;
 using sa_family_t = ADDRESS_FAMILY;
index 1124273b607215902155775d8197ba5e29886c5a..fe5dcbbc08da219aae8e5f50d63d53feee0ac378 100644 (file)
@@ -20,7 +20,7 @@
 
 #if defined(__APPLE__)
 #if __has_include(<crt_externs.h>)
-#include <crt_externs.h>
+#include <crt_externs.h> // @manual
 #endif
 #endif
 
index d0c9414a27108b4012d9bbc8727357730837cb2d..1bc2a7ab2d955eb48c5c9b069a72bf8c7743ffa1 100644 (file)
@@ -29,7 +29,7 @@
 #define MEMBARRIER_CMD_QUERY 0
 #define MEMBARRIER_CMD_SHARED 1
 #elif FOLLY_HAVE_LINUX_MEMBARRIER_H
-#include <linux/membarrier.h>
+#include <linux/membarrier.h> // @manual
 #endif
 #endif
 
index 60168506f80a4777aaf1a794c98162b18260b4c0..35955137676437bafff059dc2f92ebc7a4c130bd 100755 (executable)
@@ -19,7 +19,7 @@
 #include <sys/types.h>
 
 #ifdef _WIN32
-#include <basetsd.h>
+#include <basetsd.h> // @manual
 
 #define HAVE_MODE_T 1
 
index 54b3d0a10f0ac9d93045fea4494483f0a19f5261..ceafcc2e099e91715b621c81a8062d275e69f85c 100644 (file)
@@ -35,13 +35,13 @@ static void duration_to_ts(
 #if !FOLLY_HAVE_CLOCK_GETTIME || FOLLY_FORCE_CLOCK_GETTIME_DEFINITION
 #if __MACH__
 #include <errno.h>
-#include <mach/mach_init.h>
-#include <mach/mach_port.h>
-#include <mach/mach_time.h>
-#include <mach/mach_types.h>
-#include <mach/task.h>
-#include <mach/thread_act.h>
-#include <mach/vm_map.h>
+#include <mach/mach_init.h> // @manual
+#include <mach/mach_port.h> // @manual
+#include <mach/mach_time.h> // @manual
+#include <mach/mach_types.h> // @manual
+#include <mach/task.h> // @manual
+#include <mach/thread_act.h> // @manual
+#include <mach/vm_map.h> // @manual
 
 static std::chrono::nanoseconds time_value_to_ns(time_value_t t) {
   return std::chrono::seconds(t.seconds) +
index 24652914270caa7c5d12215608c04b636c234a6a..ff582edc2550b652e449d2bcb14f141f2f3ed4e6 100644 (file)
@@ -32,8 +32,8 @@
 // Including ntdef.h requires building as a driver, but all we want
 // is a status code, but we need NTSTATUS defined for that. Luckily
 // bcrypt.h also defines NTSTATUS, so we'll use that one instead.
-#include <bcrypt.h>
-#include <ntstatus.h>
+#include <bcrypt.h> // @manual
+#include <ntstatus.h> // @manual
 
 // Generic wrapper for the p* family of functions.
 template <class F, class... Args>
index b4cd106a98ff31df31414fe579811408047cc3dd..2c0c0cd2e37c204294f1983c1d2f87003e855870 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <cstdint>
 
-#include <sys/locking.h>
+#include <sys/locking.h> // @manual
 
 #include <folly/portability/SysTypes.h>
 
index 2402bf1f98aa6117856949bfce96fc597e16c47d..4186058a597745aa7d3594d7e4d041826d687309 100644 (file)
 #ifndef __STDC__
 /* nolint */
 #define __STDC__ 1
-#include <direct.h> // nolint
-#include <io.h> // nolint
+#include <direct.h> // @manual nolint
+#include <io.h> // @manual nolint
 #undef __STDC__
 #else
-#include <direct.h> // nolint
-#include <io.h> // nolint
+#include <direct.h> // @manual nolint
+#include <io.h> // @manual nolint
 #endif
 
 #if defined(min) || defined(max)
@@ -49,8 +49,8 @@
 #define NOMINMAX 1
 #endif
 
-#include <WinSock2.h>
-#include <Windows.h>
+#include <WinSock2.h> // @manual
+#include <Windows.h> // @manual
 
 #ifdef CAL_GREGORIAN
 #undef CAL_GREGORIAN