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 45391b4..be90931 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 1e4c6ed..67dab04 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 1d6fe86..fb836d5 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 b41de5a..0040d37 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 db1c2fb..414aec0 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 74060df..f1617fc 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 1124273..fe5dcbb 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 d0c9414..1bc2a7a 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 6016850..3595513 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 54b3d0a..ceafcc2 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 2465291..ff582ed 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 b4cd106..2c0c0cd 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <cstdint>
 
-#include <sys/locking.h>
+#include <sys/locking.h> // @manual
 
 #include <folly/portability/SysTypes.h>
 
index 2402bf1..4186058 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