Skip to content

Commit aeb1989

Browse files
[lldb] Fully namespace SBType callback function parameters (llvm#102375)
This commit fully namespaces callback function pointer parameters that are SB types in `SBDefines` and `lldb-types`. We have a clang-based tool that reads these headers and it would benefit from having the parameters being fully namespaced here.
1 parent cf416e0 commit aeb1989

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lldb/include/lldb/API/SBDefines.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,16 @@ class LLDB_API SBWatchpoint;
135135
class LLDB_API SBWatchpointOptions;
136136
class LLDB_API SBUnixSignals;
137137

138-
typedef bool (*SBBreakpointHitCallback)(void *baton, SBProcess &process,
139-
SBThread &thread,
138+
typedef bool (*SBBreakpointHitCallback)(void *baton, lldb::SBProcess &process,
139+
lldb::SBThread &thread,
140140
lldb::SBBreakpointLocation &location);
141141

142142
typedef void (*SBDebuggerDestroyCallback)(lldb::user_id_t debugger_id,
143143
void *baton);
144144

145-
typedef SBError (*SBPlatformLocateModuleCallback)(
146-
void *baton, const SBModuleSpec &module_spec, SBFileSpec &module_file_spec,
147-
SBFileSpec &symbol_file_spec);
145+
typedef lldb::SBError (*SBPlatformLocateModuleCallback)(
146+
void *baton, const lldb::SBModuleSpec &module_spec,
147+
lldb::SBFileSpec &module_file_spec, lldb::SBFileSpec &symbol_file_spec);
148148
}
149149

150150
#endif // LLDB_API_SBDEFINES_H

lldb/include/lldb/lldb-types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ typedef int pipe_t; // Host pipe type
7272

7373
typedef void (*LogOutputCallback)(const char *, void *baton);
7474
typedef bool (*CommandOverrideCallback)(void *baton, const char **argv);
75-
typedef bool (*ExpressionCancelCallback)(ExpressionEvaluationPhase phase,
75+
typedef bool (*ExpressionCancelCallback)(lldb::ExpressionEvaluationPhase phase,
7676
void *baton);
7777

7878
typedef void *ScriptObjectPtr;

0 commit comments

Comments
 (0)