From b215baa25240dc038c53c6b9b333dc040ada8d59 Mon Sep 17 00:00:00 2001 From: Nicholas Ormrod Date: Fri, 18 Apr 2014 10:16:33 -0700 Subject: [PATCH] Fix header ordering lint failures Summary: Headers whose includes are not sufficient cause problems when included from other files. An easy way to prevent this is to include the header first in its associated cpp file. In fact, we have a lint rule for this. However, there are places where this rule is ignored. This diff fixes many of them. Note that a few top-level directories were excluded. Reviewed By: robbert@fb.com FB internal diff: D1281032 --- folly/experimental/symbolizer/StackTrace.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/experimental/symbolizer/StackTrace.cpp b/folly/experimental/symbolizer/StackTrace.cpp index 36e1a4e4..dde71705 100644 --- a/folly/experimental/symbolizer/StackTrace.cpp +++ b/folly/experimental/symbolizer/StackTrace.cpp @@ -14,12 +14,12 @@ * limitations under the License. */ +#include "folly/experimental/symbolizer/StackTrace.h" + // Must be first to ensure that UNW_LOCAL_ONLY is defined #define UNW_LOCAL_ONLY 1 #include -#include "folly/experimental/symbolizer/StackTrace.h" - namespace folly { namespace symbolizer { ssize_t getStackTrace(uintptr_t* addresses, size_t maxAddresses) { -- 2.34.1