[Lldb-commits] [lldb] aeb1989 - [lldb] Fully namespace SBType callback function parameters (#102375)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Aug 7 15:05:34 PDT 2024
Author: Chelsea Cassanova
Date: 2024-08-07T15:05:31-07:00
New Revision: aeb1989bb585e216a13fddeaf28887bdf8623075
URL: https://github.com/llvm/llvm-project/commit/aeb1989bb585e216a13fddeaf28887bdf8623075
DIFF: https://github.com/llvm/llvm-project/commit/aeb1989bb585e216a13fddeaf28887bdf8623075.diff
LOG: [lldb] Fully namespace SBType callback function parameters (#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.
Added:
Modified:
lldb/include/lldb/API/SBDefines.h
lldb/include/lldb/lldb-types.h
Removed:
################################################################################
diff --git a/lldb/include/lldb/API/SBDefines.h b/lldb/include/lldb/API/SBDefines.h
index f42e2be558d2e..9543ebc08a320 100644
--- a/lldb/include/lldb/API/SBDefines.h
+++ b/lldb/include/lldb/API/SBDefines.h
@@ -135,16 +135,16 @@ class LLDB_API SBWatchpoint;
class LLDB_API SBWatchpointOptions;
class LLDB_API SBUnixSignals;
-typedef bool (*SBBreakpointHitCallback)(void *baton, SBProcess &process,
- SBThread &thread,
+typedef bool (*SBBreakpointHitCallback)(void *baton, lldb::SBProcess &process,
+ lldb::SBThread &thread,
lldb::SBBreakpointLocation &location);
typedef void (*SBDebuggerDestroyCallback)(lldb::user_id_t debugger_id,
void *baton);
-typedef SBError (*SBPlatformLocateModuleCallback)(
- void *baton, const SBModuleSpec &module_spec, SBFileSpec &module_file_spec,
- SBFileSpec &symbol_file_spec);
+typedef lldb::SBError (*SBPlatformLocateModuleCallback)(
+ void *baton, const lldb::SBModuleSpec &module_spec,
+ lldb::SBFileSpec &module_file_spec, lldb::SBFileSpec &symbol_file_spec);
}
#endif // LLDB_API_SBDEFINES_H
diff --git a/lldb/include/lldb/lldb-types.h b/lldb/include/lldb/lldb-types.h
index d88b8232ee6b4..15781ad626efb 100644
--- a/lldb/include/lldb/lldb-types.h
+++ b/lldb/include/lldb/lldb-types.h
@@ -72,7 +72,7 @@ typedef int pipe_t; // Host pipe type
typedef void (*LogOutputCallback)(const char *, void *baton);
typedef bool (*CommandOverrideCallback)(void *baton, const char **argv);
-typedef bool (*ExpressionCancelCallback)(ExpressionEvaluationPhase phase,
+typedef bool (*ExpressionCancelCallback)(lldb::ExpressionEvaluationPhase phase,
void *baton);
typedef void *ScriptObjectPtr;
More information about the lldb-commits
mailing list