From: Nicholas Ormrod Date: Fri, 18 Apr 2014 17:16:33 +0000 (-0700) Subject: Fix header ordering lint failures X-Git-Tag: v0.22.0~589 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b215baa25240dc038c53c6b9b333dc040ada8d59;p=folly.git 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 --- 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) {