Lines Matching full:instance
92 FileSystem::Instance().Resolve(plugin_file_spec);
119 // instance to invalidate it.
150 if (FileSystem::Instance().Exists(dir_spec) &&
152 FileSystem::Instance().EnumerateDirectory(dir_path, find_directories,
159 if (FileSystem::Instance().Exists(dir_spec) &&
161 FileSystem::Instance().EnumerateDirectory(dir_path, find_directories,
200 template <typename Instance> class PluginInstances {
204 typename Instance::CallbackType callback,
214 bool UnregisterPlugin(typename Instance::CallbackType callback) {
228 typename Instance::CallbackType GetCallbackAtIndex(uint32_t idx) {
229 if (Instance *instance = GetInstanceAtIndex(idx))
230 return instance->create_callback;
235 if (Instance *instance = GetInstanceAtIndex(idx))
236 return instance->description;
241 if (Instance *instance = GetInstanceAtIndex(idx))
242 return instance->name;
246 typename Instance::CallbackType GetCallbackForName(llvm::StringRef name) {
249 for (auto &instance : m_instances) {
250 if (name == instance.name)
251 return instance.create_callback;
257 for (auto &instance : m_instances) {
258 if (instance.debugger_init_callback)
259 instance.debugger_init_callback(debugger);
263 const std::vector<Instance> &GetInstances() const { return m_instances; }
264 std::vector<Instance> &GetInstances() { return m_instances; }
266 Instance *GetInstanceAtIndex(uint32_t idx) {
273 std::vector<Instance> m_instances;
647 for (auto &instance : instances) {
648 if (instance.name == name)
696 for (auto &instance : instances) {
697 if (instance.name == name)
698 return instance.create_memory_callback;
733 for (auto &instance : instances) {
734 if (plugin_name.empty() || instance.name == plugin_name) {
735 if (instance.save_core && instance.save_core(process_sp, options, error))
852 for (const auto &instance : GetPlatformInstances().GetInstances()) {
853 if (instance.name.starts_with(name))
854 request.AddCompletion(instance.name);
900 for (const auto &instance : GetProcessInstances().GetInstances()) {
901 if (instance.name.starts_with(name))
902 request.AddCompletion(instance.name, instance.description);
939 // We assume that RegisterTypeBuilderClang is the only instance of this plugin
989 for (const auto &instance : instances) {
990 if (instance.language == lldb::eScriptLanguageNone)
991 none_instance = instance.create_callback;
993 if (script_lang == instance.language)
994 return instance.create_callback(debugger);
1171 for (auto &instance : instances) {
1172 if (instance.locate_executable_object_file) {
1174 instance.locate_executable_object_file(module_spec);
1185 for (auto &instance : instances) {
1186 if (instance.locate_executable_symbol_file) {
1187 std::optional<FileSpec> result = instance.locate_executable_symbol_file(
1201 for (auto &instance : instances) {
1202 if (instance.download_object_symbol_file) {
1203 if (instance.download_object_symbol_file(module_spec, error, force_lookup,
1215 for (auto &instance : instances) {
1216 if (instance.find_symbol_file_in_bundle) {
1218 instance.find_symbol_file_in_bundle(symfile_bundle, uuid, arch);
1275 for (const TraceInstance &instance : GetTracePluginInstances().GetInstances())
1276 if (instance.name == plugin_name)
1277 return instance.create_callback_for_live_process;
1282 for (const TraceInstance &instance : GetTracePluginInstances().GetInstances())
1283 if (instance.name == plugin_name)
1284 return instance.schema;
1289 if (TraceInstance *instance =
1291 return instance->schema;
1338 if (TraceExporterInstance *instance =
1340 return instance->create_thread_trace_export_command;