Skip to content

Commit 699617e

Browse files
committed
GCF
1 parent 0673dc5 commit 699617e

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

lldb/tools/lldb-dap/ProgressEvent.cpp

+11-9
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,19 @@ 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+
ProgressEventType ProgressEvent::GetEventType() const {
96+
return m_event_type;
9397
}
9498

95-
ProgressEventType ProgressEvent::GetEventType() const { return m_event_type; }
96-
9799
StringRef ProgressEvent::GetEventName() const {
98100
switch (m_event_type) {
99101
case progressStart:

0 commit comments

Comments
 (0)