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,
209 Instance instance =
210 Instance(name, description, callback, std::forward<Args>(args)...);
211 m_instances.push_back(instance);
215 bool UnregisterPlugin(typename Instance::CallbackType callback) {
229 typename Instance::CallbackType GetCallbackAtIndex(uint32_t idx) {
230 if (Instance *instance = GetInstanceAtIndex(idx))
231 return instance->create_callback;
236 if (Instance *instance = GetInstanceAtIndex(idx))
237 return instance->description;
242 if (Instance *instance = GetInstanceAtIndex(idx))
243 return instance->name;
247 typename Instance::CallbackType GetCallbackForName(llvm::StringRef name) {
250 for (auto &instance : m_instances) {
251 if (name == instance.name)
252 return instance.create_callback;
258 for (auto &instance : m_instances) {
259 if (instance.debugger_init_callback)
260 instance.debugger_init_callback(debugger);
264 const std::vector<Instance> &GetInstances() const { return m_instances; }
265 std::vector<Instance> &GetInstances() { return m_instances; }
267 Instance *GetInstanceAtIndex(uint32_t idx) {
274 std::vector<Instance> m_instances;
648 for (auto &instance : instances) {
649 if (instance.name == name)
697 for (auto &instance : instances) {
698 if (instance.name == name)
699 return instance.create_memory_callback;
730 for (auto &instance : instances) {
731 if (plugin_name.empty() || instance.name == plugin_name) {
732 if (instance.save_core && instance.save_core(process_sp, options, error))
849 for (const auto &instance : GetPlatformInstances().GetInstances()) {
850 if (instance.name.starts_with(name))
851 request.AddCompletion(instance.name);
897 for (const auto &instance : GetProcessInstances().GetInstances()) {
898 if (instance.name.starts_with(name))
899 request.AddCompletion(instance.name, instance.description);
936 // We assume that RegisterTypeBuilderClang is the only instance of this plugin
986 for (const auto &instance : instances) {
987 if (instance.language == lldb::eScriptLanguageNone)
988 none_instance = instance.create_callback;
990 if (script_lang == instance.language)
991 return instance.create_callback(debugger);
1168 for (auto &instance : instances) {
1169 if (instance.locate_executable_object_file) {
1171 instance.locate_executable_object_file(module_spec);
1182 for (auto &instance : instances) {
1183 if (instance.locate_executable_symbol_file) {
1184 std::optional<FileSpec> result = instance.locate_executable_symbol_file(
1198 for (auto &instance : instances) {
1199 if (instance.download_object_symbol_file) {
1200 if (instance.download_object_symbol_file(module_spec, error, force_lookup,
1212 for (auto &instance : instances) {
1213 if (instance.find_symbol_file_in_bundle) {
1215 instance.find_symbol_file_in_bundle(symfile_bundle, uuid, arch);
1272 for (const TraceInstance &instance : GetTracePluginInstances().GetInstances())
1273 if (instance.name == plugin_name)
1274 return instance.create_callback_for_live_process;
1279 for (const TraceInstance &instance : GetTracePluginInstances().GetInstances())
1280 if (instance.name == plugin_name)
1281 return instance.schema;
1286 if (TraceInstance *instance =
1288 return instance->schema;
1335 if (TraceExporterInstance *instance =
1337 return instance->create_thread_trace_export_command;