Summary:
While here, pet the linter with respect to the warning around the indentation with the comment containing the licensing tort.
Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
Reviewed By: yfeldblum
Differential Revision:
D6710314
fbshipit-source-id:
fc0b971e6300af9c63a690c54c08fc70e0313b70
- * Copyright 2017 Facebook, Inc.
+ * Copyright 2017-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <folly/experimental/symbolizer/StackTrace.h>
// Must be first to ensure that UNW_LOCAL_ONLY is defined
#include <folly/experimental/symbolizer/StackTrace.h>
// Must be first to ensure that UNW_LOCAL_ONLY is defined
ssize_t getStackTrace(uintptr_t* addresses, size_t maxAddresses) {
static_assert(
ssize_t getStackTrace(uintptr_t* addresses, size_t maxAddresses) {
static_assert(
- sizeof(uintptr_t) == sizeof(void*), "uinptr_t / pointer size mismatch");
+ sizeof(uintptr_t) == sizeof(void*), "uintptr_t / pointer size mismatch");
// The libunwind documentation says that unw_backtrace is async-signal-safe
// but, as of libunwind 1.0.1, it isn't (tdep_trace allocates memory on
// x86_64)
// The libunwind documentation says that unw_backtrace is async-signal-safe
// but, as of libunwind 1.0.1, it isn't (tdep_trace allocates memory on
// x86_64)