From 3bade5dfef9f8fc19a3e58f109598b6a0c7261f5 Mon Sep 17 00:00:00 2001 From: James Sedgwick Date: Wed, 14 Jun 2017 23:03:28 -0700 Subject: [PATCH] fix rest of non-portable includes Summary: According to internal linter Reviewed By: Orvid Differential Revision: D5051010 fbshipit-source-id: febdeca05ac1cf3ad82617169f90912a445cf173 --- folly/detail/Futex.cpp | 12 ++++++------ folly/experimental/symbolizer/Elf.cpp | 10 ++++------ folly/experimental/symbolizer/SignalHandler.cpp | 2 +- folly/experimental/symbolizer/Symbolizer.cpp | 5 ++--- folly/test/ChronoTest.cpp | 3 +-- 5 files changed, 14 insertions(+), 18 deletions(-) diff --git a/folly/detail/Futex.cpp b/folly/detail/Futex.cpp index edaa279e..f8a8dbc7 100644 --- a/folly/detail/Futex.cpp +++ b/folly/detail/Futex.cpp @@ -15,18 +15,18 @@ */ #include +#include +#include +#include +#include #include #include +#include #include #include -#include -#include -#include #ifdef __linux__ -# include -# include -# include +#include #endif using namespace std::chrono; diff --git a/folly/experimental/symbolizer/Elf.cpp b/folly/experimental/symbolizer/Elf.cpp index 07fa3b27..cc643866 100644 --- a/folly/experimental/symbolizer/Elf.cpp +++ b/folly/experimental/symbolizer/Elf.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2017 Facebook, Inc. + * Copyright 2017-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. @@ -13,14 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - - #include -#include -#include -#include #include +#include +#include +#include #include diff --git a/folly/experimental/symbolizer/SignalHandler.cpp b/folly/experimental/symbolizer/SignalHandler.cpp index b1837f40..49fbb205 100644 --- a/folly/experimental/symbolizer/SignalHandler.cpp +++ b/folly/experimental/symbolizer/SignalHandler.cpp @@ -21,7 +21,6 @@ #include #include #include -#include #include #include @@ -36,6 +35,7 @@ #include #include #include +#include namespace folly { namespace symbolizer { diff --git a/folly/experimental/symbolizer/Symbolizer.cpp b/folly/experimental/symbolizer/Symbolizer.cpp index 25d367c6..56d8e2ac 100644 --- a/folly/experimental/symbolizer/Symbolizer.cpp +++ b/folly/experimental/symbolizer/Symbolizer.cpp @@ -21,7 +21,6 @@ #include #include #include -#include #ifdef __GNUC__ #include @@ -34,10 +33,10 @@ #include #include -#include #include +#include #include - +#include /* * This is declared in `link.h' on Linux platforms, but apparently not on the diff --git a/folly/test/ChronoTest.cpp b/folly/test/ChronoTest.cpp index 9142ab6a..3b4a431e 100644 --- a/folly/test/ChronoTest.cpp +++ b/folly/test/ChronoTest.cpp @@ -15,8 +15,7 @@ */ #include - -#include +#include using namespace std::chrono; using namespace folly::chrono; -- 2.34.1