@@ -129,18 +129,18 @@ class CommandObjectScriptingRun : public CommandObjectRaw {
129129 CommandOptions m_options;
130130};
131131
132- #define LLDB_OPTIONS_scripting_template_list
132+ #define LLDB_OPTIONS_scripting_extension_list
133133#include " CommandOptions.inc"
134134
135- class CommandObjectScriptingTemplateList : public CommandObjectParsed {
135+ class CommandObjectScriptingExtensionList : public CommandObjectParsed {
136136public:
137- CommandObjectScriptingTemplateList (CommandInterpreter &interpreter)
137+ CommandObjectScriptingExtensionList (CommandInterpreter &interpreter)
138138 : CommandObjectParsed(
139- interpreter, " scripting template list" ,
139+ interpreter, " scripting extension list" ,
140140 " List all the available scripting extension templates. " ,
141141 " scripting template list [--language <scripting-language> --]" ) {}
142142
143- ~CommandObjectScriptingTemplateList () override = default ;
143+ ~CommandObjectScriptingExtensionList () override = default ;
144144
145145 Options *GetOptions () override { return &m_options; }
146146
@@ -174,7 +174,7 @@ class CommandObjectScriptingTemplateList : public CommandObjectParsed {
174174 }
175175
176176 llvm::ArrayRef<OptionDefinition> GetDefinitions () override {
177- return llvm::ArrayRef (g_scripting_template_list_options );
177+ return llvm::ArrayRef (g_scripting_extension_list_options );
178178 }
179179
180180 lldb::ScriptLanguage m_language = lldb::eScriptLanguageDefault;
@@ -195,8 +195,8 @@ class CommandObjectScriptingTemplateList : public CommandObjectParsed {
195195 };
196196
197197 size_t num_listed_interface = 0 ;
198- size_t num_templates = PluginManager::GetNumScriptedInterfaces ();
199- for (size_t i = 0 ; i < num_templates ; i++) {
198+ size_t num_extensions = PluginManager::GetNumScriptedInterfaces ();
199+ for (size_t i = 0 ; i < num_extensions ; i++) {
200200 llvm::StringRef plugin_name =
201201 PluginManager::GetScriptedInterfaceNameAtIndex (i);
202202 if (plugin_name.empty ())
@@ -223,7 +223,7 @@ class CommandObjectScriptingTemplateList : public CommandObjectParsed {
223223 usages.Dump (s, ScriptedInterfaceUsages::UsageKind::API);
224224 usages.Dump (s, ScriptedInterfaceUsages::UsageKind::CommandInterpreter);
225225
226- if (i != num_templates - 1 )
226+ if (i != num_extensions - 1 )
227227 s.EOL ();
228228 }
229229
@@ -235,19 +235,19 @@ class CommandObjectScriptingTemplateList : public CommandObjectParsed {
235235 CommandOptions m_options;
236236};
237237
238- class CommandObjectMultiwordScriptingTemplate : public CommandObjectMultiword {
238+ class CommandObjectMultiwordScriptingExtension : public CommandObjectMultiword {
239239public:
240- CommandObjectMultiwordScriptingTemplate (CommandInterpreter &interpreter)
240+ CommandObjectMultiwordScriptingExtension (CommandInterpreter &interpreter)
241241 : CommandObjectMultiword(
242- interpreter, " scripting template " ,
243- " Commands for operating on the scripting templates ." ,
244- " scripting template [<subcommand-options>]" ) {
242+ interpreter, " scripting extension " ,
243+ " Commands for operating on the scripting extensions ." ,
244+ " scripting extension [<subcommand-options>]" ) {
245245 LoadSubCommand (
246246 " list" ,
247- CommandObjectSP (new CommandObjectScriptingTemplateList (interpreter)));
247+ CommandObjectSP (new CommandObjectScriptingExtensionList (interpreter)));
248248 }
249249
250- ~CommandObjectMultiwordScriptingTemplate () override = default ;
250+ ~CommandObjectMultiwordScriptingExtension () override = default ;
251251};
252252
253253CommandObjectMultiwordScripting::CommandObjectMultiwordScripting (
@@ -258,9 +258,9 @@ CommandObjectMultiwordScripting::CommandObjectMultiwordScripting(
258258 " scripting <subcommand> [<subcommand-options>]" ) {
259259 LoadSubCommand (" run" ,
260260 CommandObjectSP (new CommandObjectScriptingRun (interpreter)));
261- LoadSubCommand (" template " ,
262- CommandObjectSP (
263- new CommandObjectMultiwordScriptingTemplate ( interpreter)));
261+ LoadSubCommand (" extension " ,
262+ CommandObjectSP (new CommandObjectMultiwordScriptingExtension (
263+ interpreter)));
264264}
265265
266266CommandObjectMultiwordScripting::~CommandObjectMultiwordScripting () = default ;
0 commit comments