Skip to content

Commit 55ee28c

Browse files
committed
GCF
1 parent 0673dc5 commit 55ee28c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

lldb/tools/lldb-dap/ProgressEvent.cpp

+12-9
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,20 @@ ProgressEvent::Create(uint64_t progress_id, std::optional<StringRef> message,
8383
return event;
8484
}
8585

86-
bool ProgressEvent::EqualsForIDE(const ProgressEvent &other, uint64_t total) const {
87-
return m_progress_id == other.m_progress_id &&
88-
m_event_type == other.m_event_type &&
89-
// If we check the percentage of a non-deterministic event
90-
// we will basically never send the event, because N+1/Uint64_max
91-
// will always be an infinitesimally small change.
92-
(total != UINT64_MAX && m_percentage == other.m_percentage);
86+
bool ProgressEvent::EqualsForIDE(const ProgressEvent &other,
87+
uint64_t total) const {
88+
return m_progress_id == other.m_progress_id &&
89+
m_event_type == other.m_event_type &&
90+
// If we check the percentage of a non-deterministic event
91+
// we will basically never send the event, because N+1/Uint64_max
92+
// will always be an infinitesimally small change.
93+
(total != UINT64_MAX && m_percentage == other.m_percentage);
94+
}
95+
96+
ProgressEventType ProgressEvent::GetEventType() const {
97+
return m_event_type;
9398
}
9499

95-
ProgressEventType ProgressEvent::GetEventType() const { return m_event_type; }
96-
97100
StringRef ProgressEvent::GetEventName() const {
98101
switch (m_event_type) {
99102
case progressStart:

0 commit comments

Comments
 (0)