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
* 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) {