Skip to content

Commit 4fb482e

Browse files
committed
Format
1 parent 25356d5 commit 4fb482e

File tree

5 files changed

+18
-14
lines changed

5 files changed

+18
-14
lines changed

lldb/include/lldb/API/SBTarget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ class LLDB_API SBTarget {
6565

6666
static lldb::SBTarget GetTargetFromEvent(const lldb::SBEvent &event);
6767

68-
/// For eBroadcastBitNewTargetCreated events, returns the newly created target.
69-
/// For other event types, returns an invalid SBTarget.
68+
/// For eBroadcastBitNewTargetCreated events, returns the newly created
69+
/// target. For other event types, returns an invalid SBTarget.
7070
static lldb::SBTarget GetCreatedTargetFromEvent(const lldb::SBEvent &event);
7171

7272
static uint32_t GetNumModulesFromEvent(const lldb::SBEvent &event);

lldb/include/lldb/Target/Target.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,8 @@ class Target : public std::enable_shared_from_this<Target>,
557557
TargetEventData(const lldb::TargetSP &target_sp,
558558
const ModuleList &module_list);
559559

560-
// Constructor for eBroadcastBitNewTargetCreated events. For this event type:
560+
// Constructor for eBroadcastBitNewTargetCreated events. For this event
561+
// type:
561562
// - target_sp is the parent target (the subject/broadcaster of the event)
562563
// - created_target_sp is the newly created target
563564
TargetEventData(const lldb::TargetSP &target_sp,
@@ -577,15 +578,17 @@ class Target : public std::enable_shared_from_this<Target>,
577578

578579
static lldb::TargetSP GetTargetFromEvent(const Event *event_ptr);
579580

580-
// For eBroadcastBitNewTargetCreated events, returns the newly created target.
581-
// For other event types, returns an invalid target.
581+
// For eBroadcastBitNewTargetCreated events, returns the newly created
582+
// target. For other event types, returns an invalid target.
582583
static lldb::TargetSP GetCreatedTargetFromEvent(const Event *event_ptr);
583584

584585
static ModuleList GetModuleListFromEvent(const Event *event_ptr);
585586

586587
const lldb::TargetSP &GetTarget() const { return m_target_sp; }
587588

588-
const lldb::TargetSP &GetCreatedTarget() const { return m_created_target_sp; }
589+
const lldb::TargetSP &GetCreatedTarget() const {
590+
return m_created_target_sp;
591+
}
589592

590593
const ModuleList &GetModuleList() const { return m_module_list; }
591594

lldb/source/Target/Target.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5201,10 +5201,10 @@ Target::TargetEventData::TargetEventData(const lldb::TargetSP &target_sp,
52015201
const ModuleList &module_list)
52025202
: EventData(), m_target_sp(target_sp), m_module_list(module_list) {}
52035203

5204-
Target::TargetEventData::TargetEventData(const lldb::TargetSP &target_sp,
5205-
const lldb::TargetSP &created_target_sp)
5206-
: EventData(), m_target_sp(target_sp), m_created_target_sp(created_target_sp),
5207-
m_module_list() {}
5204+
Target::TargetEventData::TargetEventData(
5205+
const lldb::TargetSP &target_sp, const lldb::TargetSP &created_target_sp)
5206+
: EventData(), m_target_sp(target_sp),
5207+
m_created_target_sp(created_target_sp), m_module_list() {}
52085208

52095209
Target::TargetEventData::~TargetEventData() = default;
52105210

lldb/tools/lldb-dap/DAPSessionManager.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
//===----------------------------------------------------------------------===//
88
///
99
/// \file
10-
/// This file contains the declarations of the DAPSessionManager and ManagedEventThread classes,
11-
/// which are used to multiple concurrent DAP sessions in a single lldb-dap process.
10+
/// This file contains the declarations of the DAPSessionManager and
11+
/// ManagedEventThread classes, which are used to multiple concurrent DAP
12+
/// sessions in a single lldb-dap process.
1213
///
1314
//===----------------------------------------------------------------------===//
1415

lldb/tools/lldb-dap/EventHelper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
#include "lldb/API/SBEvent.h"
2424
#include "lldb/API/SBFileSpec.h"
2525
#include "lldb/API/SBListener.h"
26-
#include "lldb/API/SBStream.h"
2726
#include "lldb/API/SBPlatform.h"
27+
#include "lldb/API/SBStream.h"
2828
#include "llvm/Support/Error.h"
2929
#include "llvm/Support/FormatVariadic.h"
3030
#include "llvm/Support/Threading.h"
@@ -594,7 +594,7 @@ void EventThread(lldb::SBDebugger debugger, lldb::SBBroadcaster broadcaster,
594594
broadcaster.AddListener(listener, eBroadcastBitStopEventThread);
595595
debugger.GetBroadcaster().AddListener(
596596
listener, lldb::eBroadcastBitError | lldb::eBroadcastBitWarning);
597-
597+
598598
// listen for thread events.
599599
listener.StartListeningForEventClass(
600600
debugger, lldb::SBThread::GetBroadcasterClassName(),

0 commit comments

Comments
 (0)