aboutsummaryrefslogtreecommitdiff
path: root/lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h')
-rw-r--r--lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h21
1 files changed, 12 insertions, 9 deletions
diff --git a/lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h b/lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h
index 89a7d03ce93f..26fd6f2f04d7 100644
--- a/lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h
+++ b/lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h
@@ -6,8 +6,8 @@
//
//===----------------------------------------------------------------------===//
-#ifndef liblldb_BreakpointResolverScripted_h_
-#define liblldb_BreakpointResolverScripted_h_
+#ifndef LLDB_BREAKPOINT_BREAKPOINTRESOLVERSCRIPTED_H
+#define LLDB_BREAKPOINT_BREAKPOINTRESOLVERSCRIPTED_H
#include "lldb/lldb-forward.h"
#include "lldb/Breakpoint/BreakpointResolver.h"
@@ -23,15 +23,15 @@ namespace lldb_private {
class BreakpointResolverScripted : public BreakpointResolver {
public:
- BreakpointResolverScripted(Breakpoint *bkpt,
+ BreakpointResolverScripted(const lldb::BreakpointSP &bkpt,
const llvm::StringRef class_name,
lldb::SearchDepth depth,
StructuredDataImpl *args_data);
- ~BreakpointResolverScripted() override;
+ ~BreakpointResolverScripted() override = default;
static BreakpointResolver *
- CreateFromStructuredData(Breakpoint *bkpt,
+ CreateFromStructuredData(const lldb::BreakpointSP &bkpt,
const StructuredData::Dictionary &options_dict,
Status &error);
@@ -53,12 +53,13 @@ public:
return V->getResolverID() == BreakpointResolver::PythonResolver;
}
- lldb::BreakpointResolverSP CopyForBreakpoint(Breakpoint &breakpoint) override;
+ lldb::BreakpointResolverSP
+ CopyForBreakpoint(lldb::BreakpointSP &breakpoint) override;
protected:
void NotifyBreakpointSet() override;
private:
- void CreateImplementationIfNeeded();
+ void CreateImplementationIfNeeded(lldb::BreakpointSP bkpt);
ScriptInterpreter *GetScriptInterpreter();
std::string m_class_name;
@@ -69,9 +70,11 @@ private:
// SBStructuredData).
StructuredData::GenericSP m_implementation_sp;
- DISALLOW_COPY_AND_ASSIGN(BreakpointResolverScripted);
+ BreakpointResolverScripted(const BreakpointResolverScripted &) = delete;
+ const BreakpointResolverScripted &
+ operator=(const BreakpointResolverScripted &) = delete;
};
} // namespace lldb_private
-#endif // liblldb_BreakpointResolverScripted_h_
+#endif // LLDB_BREAKPOINT_BREAKPOINTRESOLVERSCRIPTED_H