Skip to content

Commit 19038a3

Browse files
committed
[libunwind] Address formatting issues
Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent 9a50b58 commit 19038a3

File tree

5 files changed

+13
-8
lines changed

5 files changed

+13
-8
lines changed

libunwind/src/Registers.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,10 +1857,12 @@ class _LIBUNWIND_HIDDEN Registers_arm64 {
18571857
void setVectorRegister(int num, v128 value);
18581858
static const char *getRegisterName(int num);
18591859
#ifdef _LIBUNWIND_TRACE_RET_INJECT
1860-
__attribute__((noinline, disable_tail_calls)) void
1861-
returnto(unsigned walkedFrames) {
1860+
// clang-format off
1861+
__attribute__((noinline, disable_tail_calls))
1862+
void returnto(unsigned walkedFrames) {
18621863
__libunwind_Registers_arm64_jumpto(this, walkedFrames);
18631864
}
1865+
// clang-format on
18641866
#else
18651867
void jumpto() { __libunwind_Registers_arm64_jumpto(this, 0); }
18661868
#endif

libunwind/src/UnwindCursor.hpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@ class _LIBUNWIND_HIDDEN AbstractUnwindCursor {
475475
#ifdef _LIBUNWIND_TRACE_RET_INJECT
476476
__attribute__((noinline, disable_tail_calls))
477477
#endif
478-
virtual void
479-
jumpto() {
478+
virtual void jumpto() {
480479
_LIBUNWIND_ABORT("jumpto not implemented");
481480
}
482481
virtual bool isSignalFrame() {
@@ -980,8 +979,9 @@ class UnwindCursor : public AbstractUnwindCursor{
980979
#ifdef _LIBUNWIND_TRACE_RET_INJECT
981980
__attribute__((noinline, disable_tail_calls))
982981
#endif
983-
virtual void
984-
jumpto();
982+
// clang-format off
983+
virtual void jumpto();
984+
// clang-format on
985985
virtual bool isSignalFrame();
986986
virtual bool getFunctionName(char *buf, size_t len, unw_word_t *off);
987987
virtual void setInfoBasedOnIPRegister(bool isReturnAddress = false);
@@ -1434,6 +1434,7 @@ void UnwindCursor<A, R>::setFloatReg(int regNum, unw_fpreg_t value) {
14341434

14351435
template <typename A, typename R> void UnwindCursor<A, R>::jumpto() {
14361436
#ifdef _LIBUNWIND_TRACE_RET_INJECT
1437+
// clang-format off
14371438
/*
14381439
14391440
The value of `_walkedFrames` is computed in `unwind_phase2` and represents the
@@ -1467,6 +1468,7 @@ template <typename A, typename R> void UnwindCursor<A, R>::jumpto() {
14671468
back to the landing pad, so we need to subtract 1 to the number of
14681469
`_EXTRA_LIBUNWIND_FRAMES_WALKED`.
14691470
*/
1471+
// clang-format on
14701472

14711473
static constexpr size_t _EXTRA_LIBUNWIND_FRAMES_WALKED = 5 - 1;
14721474
_registers.returnto(_walkedFrames + _EXTRA_LIBUNWIND_FRAMES_WALKED);

libunwind/src/assembly.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#ifndef UNWIND_ASSEMBLY_H
1616
#define UNWIND_ASSEMBLY_H
1717

18+
// clang-format off
1819
#if defined(__linux__) && defined(__CET__)
1920
#include <cet.h>
2021
#define _LIBUNWIND_CET_ENDBR _CET_ENDBR

libunwind/src/config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
#include <__libunwind_config.h>
2222

23+
// clang-format off
2324
// Platform specific configuration defines.
2425
#ifdef __APPLE__
2526
#if defined(FOR_DYLD)

libunwind/src/libunwind_ext.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ extern int __unw_set_fpreg(unw_cursor_t *, unw_regnum_t, unw_fpreg_t);
3333
#ifdef _LIBUNWIND_TRACE_RET_INJECT
3434
__attribute__((noinline, disable_tail_calls))
3535
#endif
36-
extern int
37-
__unw_resume_with_frames_walked(unw_cursor_t *, unsigned);
36+
extern int __unw_resume_with_frames_walked(unw_cursor_t *, unsigned);
3837
// Legacy function. Do not use.
3938
#ifdef _LIBUNWIND_TRACE_RET_INJECT
4039
__attribute__((noinline, disable_tail_calls))

0 commit comments

Comments
 (0)