@@ -55,8 +55,7 @@ const BreakpointOptions &BreakpointLocation::GetOptionsSpecifyingKind(
5555 BreakpointOptions::OptionKind kind) const {
5656 if (m_options_up && m_options_up->IsOptionSet (kind))
5757 return *m_options_up;
58- else
59- return m_owner.GetOptions ();
58+ return m_owner.GetOptions ();
6059}
6160
6261Address &BreakpointLocation::GetAddress () { return m_address; }
@@ -68,10 +67,9 @@ Target &BreakpointLocation::GetTarget() { return m_owner.GetTarget(); }
6867bool BreakpointLocation::IsEnabled () const {
6968 if (!m_owner.IsEnabled ())
7069 return false ;
71- else if (m_options_up != nullptr )
70+ if (m_options_up != nullptr )
7271 return m_options_up->IsEnabled ();
73- else
74- return true ;
72+ return true ;
7573}
7674
7775void BreakpointLocation::SetEnabled (bool enabled) {
@@ -89,8 +87,7 @@ bool BreakpointLocation::IsAutoContinue() const {
8987 if (m_options_up &&
9088 m_options_up->IsOptionSet (BreakpointOptions::eAutoContinue))
9189 return m_options_up->IsAutoContinue ();
92- else
93- return m_owner.IsAutoContinue ();
90+ return m_owner.IsAutoContinue ();
9491}
9592
9693void BreakpointLocation::SetAutoContinue (bool auto_continue) {
@@ -109,8 +106,7 @@ lldb::tid_t BreakpointLocation::GetThreadID() {
109106 .GetThreadSpecNoCreate ();
110107 if (thread_spec)
111108 return thread_spec->GetTID ();
112- else
113- return LLDB_INVALID_THREAD_ID;
109+ return LLDB_INVALID_THREAD_ID;
114110}
115111
116112void BreakpointLocation::SetThreadIndex (uint32_t index) {
@@ -131,8 +127,7 @@ uint32_t BreakpointLocation::GetThreadIndex() const {
131127 .GetThreadSpecNoCreate ();
132128 if (thread_spec)
133129 return thread_spec->GetIndex ();
134- else
135- return 0 ;
130+ return 0 ;
136131}
137132
138133void BreakpointLocation::SetThreadName (const char *thread_name) {
@@ -153,8 +148,7 @@ const char *BreakpointLocation::GetThreadName() const {
153148 .GetThreadSpecNoCreate ();
154149 if (thread_spec)
155150 return thread_spec->GetName ();
156- else
157- return nullptr ;
151+ return nullptr ;
158152}
159153
160154void BreakpointLocation::SetQueueName (const char *queue_name) {
@@ -175,22 +169,19 @@ const char *BreakpointLocation::GetQueueName() const {
175169 .GetThreadSpecNoCreate ();
176170 if (thread_spec)
177171 return thread_spec->GetQueueName ();
178- else
179- return nullptr ;
172+ return nullptr ;
180173}
181174
182175bool BreakpointLocation::InvokeCallback (StoppointCallbackContext *context) {
183176 if (m_options_up != nullptr && m_options_up->HasCallback ())
184177 return m_options_up->InvokeCallback (context, m_owner.GetID (), GetID ());
185- else
186- return m_owner.InvokeCallback (context, GetID ());
178+ return m_owner.InvokeCallback (context, GetID ());
187179}
188180
189181bool BreakpointLocation::IsCallbackSynchronous () {
190182 if (m_options_up != nullptr && m_options_up->HasCallback ())
191183 return m_options_up->IsCallbackSynchronous ();
192- else
193- return m_owner.GetOptions ().IsCallbackSynchronous ();
184+ return m_owner.GetOptions ().IsCallbackSynchronous ();
194185}
195186
196187void BreakpointLocation::SetCallback (BreakpointHitCallback callback,
0 commit comments