[Lldb-commits] [lldb] Refactor LLDB Breakpoint Event Notifications to centralize and eliminate code duplication (PR #164739)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 23 13:20:58 PDT 2025
================
@@ -1099,12 +1099,8 @@ bool Breakpoint::EvaluatePrecondition(StoppointCallbackContext &context) {
void Breakpoint::SendBreakpointChangedEvent(
lldb::BreakpointEventType eventKind) {
- if (!IsInternal() && GetTarget().EventTypeHasListeners(
- Target::eBroadcastBitBreakpointChanged)) {
- std::shared_ptr<BreakpointEventData> data =
- std::make_shared<BreakpointEventData>(eventKind, shared_from_this());
-
- GetTarget().BroadcastEvent(Target::eBroadcastBitBreakpointChanged, data);
+ if (!IsInternal()) {
----------------
JDevlieghere wrote:
No braces around single-line ifs.
```suggestion
if (!IsInternal())
```
https://github.com/llvm/llvm-project/pull/164739
More information about the lldb-commits
mailing list