Fix header ordering lint failures
authorNicholas Ormrod <njormrod@fb.com>
Fri, 18 Apr 2014 17:16:33 +0000 (10:16 -0700)
committerSara Golemon <sgolemon@fb.com>
Fri, 18 Apr 2014 19:11:07 +0000 (12:11 -0700)
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

index 36e1a4e495e233c58823edec572796342eac0591..dde71705f4fc2294bd658cc7da30a0ed9008ecd3 100644 (file)
  * 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 <libunwind.h>
 
-#include "folly/experimental/symbolizer/StackTrace.h"
-
 namespace folly { namespace symbolizer {
 
 ssize_t getStackTrace(uintptr_t* addresses, size_t maxAddresses) {