Commit 2ccbaf9e authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Enable auto-deps in all of Folly

Summary: This enables the last of the magic internally.

Reviewed By: yfeldblum

Differential Revision: D5719795

fbshipit-source-id: fb59a0d7873e9a9f3b73f556b42b647091ca7e67
parent 053fb025
......@@ -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
......
......@@ -25,13 +25,13 @@
#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
......@@ -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
......
......@@ -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);
......
......@@ -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>
......
......@@ -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;
......
......@@ -20,7 +20,7 @@
#if defined(__APPLE__)
#if __has_include(<crt_externs.h>)
#include <crt_externs.h>
#include <crt_externs.h> // @manual
#endif
#endif
......
......@@ -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
......
......@@ -19,7 +19,7 @@
#include <sys/types.h>
#ifdef _WIN32
#include <basetsd.h>
#include <basetsd.h> // @manual
#define HAVE_MODE_T 1
......
......@@ -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) +
......
......@@ -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>
......
......@@ -24,7 +24,7 @@
#include <cstdint>
#include <sys/locking.h>
#include <sys/locking.h> // @manual
#include <folly/portability/SysTypes.h>
......
......@@ -29,12 +29,12 @@
#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
......
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