Skip to content

Commit

Permalink
Fix header ordering lint failures
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Gownta authored and sgolemon committed Apr 18, 2014
1 parent b7433fa commit b215baa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions folly/experimental/symbolizer/StackTrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <libunwind.h>

#include "folly/experimental/symbolizer/StackTrace.h"

namespace folly { namespace symbolizer {

ssize_t getStackTrace(uintptr_t* addresses, size_t maxAddresses) {
Expand Down

0 comments on commit b215baa

Please sign in to comment.