[Lldb-commits] [lldb] [lldb/Commands] Add `scripting template list` command with auto discovery (PR #97273)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 3 16:59:33 PDT 2024


================
@@ -487,6 +487,33 @@ class PluginManager {
 
   static LanguageSet GetAllTypeSystemSupportedLanguagesForExpressions();
 
+  // Scripted Interface
+  static bool
+  RegisterPlugin(llvm::StringRef name, llvm::StringRef description,
+                 ScriptedInterfaceCreateInstance create_callback,
+                 lldb::ScriptLanguage language,
+                 std::vector<llvm::StringRef> command_interpreter_usages,
+                 std::vector<llvm::StringRef> api_usages);
----------------
JDevlieghere wrote:

Could the usages be their own objects? It would simplif the plugin API and if you add a dump method you could simplify the command object too. 

https://github.com/llvm/llvm-project/pull/97273


More information about the lldb-commits mailing list