From 6a48dc092b0fda65e786021ebf75bda3e1be5c33 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Wed, 3 Aug 2022 10:49:45 -0700 Subject: [PATCH] [lldb] Add missing newlines after LLDB_INSTRUMENT_VA Add a newline after LLDB_INSTRUMENT_VA to match the output of lldb-instr and keep everything consistent. --- lldb/source/API/SBTraceCursor.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lldb/source/API/SBTraceCursor.cpp b/lldb/source/API/SBTraceCursor.cpp index a98b388..f4ae31f 100644 --- a/lldb/source/API/SBTraceCursor.cpp +++ b/lldb/source/API/SBTraceCursor.cpp @@ -24,36 +24,43 @@ SBTraceCursor::SBTraceCursor(TraceCursorSP trace_cursor_sp) void SBTraceCursor::SetForwards(bool forwards) { LLDB_INSTRUMENT_VA(this, forwards); + m_opaque_sp->SetForwards(forwards); } bool SBTraceCursor::IsForwards() const { LLDB_INSTRUMENT_VA(this); + return m_opaque_sp->IsForwards(); } void SBTraceCursor::Next() { LLDB_INSTRUMENT_VA(this); + return m_opaque_sp->Next(); } bool SBTraceCursor::HasValue() const { LLDB_INSTRUMENT_VA(this); + return m_opaque_sp->HasValue(); } bool SBTraceCursor::GoToId(lldb::user_id_t id) { LLDB_INSTRUMENT_VA(this, id); + return m_opaque_sp->GoToId(id); } bool SBTraceCursor::HasId(lldb::user_id_t id) const { LLDB_INSTRUMENT_VA(this, id); + return m_opaque_sp->HasId(id); } lldb::user_id_t SBTraceCursor::GetId() const { LLDB_INSTRUMENT_VA(this); + return m_opaque_sp->GetId(); } @@ -65,41 +72,49 @@ bool SBTraceCursor::Seek(int64_t offset, lldb::TraceCursorSeekType origin) { lldb::TraceItemKind SBTraceCursor::GetItemKind() const { LLDB_INSTRUMENT_VA(this); + return m_opaque_sp->GetItemKind(); } bool SBTraceCursor::IsError() const { LLDB_INSTRUMENT_VA(this); + return m_opaque_sp->IsError(); } const char *SBTraceCursor::GetError() const { LLDB_INSTRUMENT_VA(this); + return m_opaque_sp->GetError(); } bool SBTraceCursor::IsEvent() const { LLDB_INSTRUMENT_VA(this); + return m_opaque_sp->IsEvent(); } lldb::TraceEvent SBTraceCursor::GetEventType() const { LLDB_INSTRUMENT_VA(this); + return m_opaque_sp->GetEventType(); } const char *SBTraceCursor::GetEventTypeAsString() const { LLDB_INSTRUMENT_VA(this); + return m_opaque_sp->GetEventTypeAsString(); } bool SBTraceCursor::IsInstruction() const { LLDB_INSTRUMENT_VA(this); + return m_opaque_sp->IsInstruction(); } lldb::addr_t SBTraceCursor::GetLoadAddress() const { LLDB_INSTRUMENT_VA(this); + return m_opaque_sp->GetLoadAddress(); } @@ -111,6 +126,7 @@ lldb::cpu_id_t SBTraceCursor::GetCPU() const { bool SBTraceCursor::IsValid() const { LLDB_INSTRUMENT_VA(this); + return this->operator bool(); } -- 2.7.4