@@ -129,18 +129,18 @@ class CommandObjectScriptingRun : public CommandObjectRaw {
129
129
CommandOptions m_options;
130
130
};
131
131
132
- #define LLDB_OPTIONS_scripting_template_list
132
+ #define LLDB_OPTIONS_scripting_extension_list
133
133
#include " CommandOptions.inc"
134
134
135
- class CommandObjectScriptingTemplateList : public CommandObjectParsed {
135
+ class CommandObjectScriptingExtensionList : public CommandObjectParsed {
136
136
public:
137
- CommandObjectScriptingTemplateList (CommandInterpreter &interpreter)
137
+ CommandObjectScriptingExtensionList (CommandInterpreter &interpreter)
138
138
: CommandObjectParsed(
139
- interpreter, " scripting template list" ,
139
+ interpreter, " scripting extension list" ,
140
140
" List all the available scripting extension templates. " ,
141
141
" scripting template list [--language <scripting-language> --]" ) {}
142
142
143
- ~CommandObjectScriptingTemplateList () override = default ;
143
+ ~CommandObjectScriptingExtensionList () override = default ;
144
144
145
145
Options *GetOptions () override { return &m_options; }
146
146
@@ -174,7 +174,7 @@ class CommandObjectScriptingTemplateList : public CommandObjectParsed {
174
174
}
175
175
176
176
llvm::ArrayRef<OptionDefinition> GetDefinitions () override {
177
- return llvm::ArrayRef (g_scripting_template_list_options );
177
+ return llvm::ArrayRef (g_scripting_extension_list_options );
178
178
}
179
179
180
180
lldb::ScriptLanguage m_language = lldb::eScriptLanguageDefault;
@@ -195,8 +195,8 @@ class CommandObjectScriptingTemplateList : public CommandObjectParsed {
195
195
};
196
196
197
197
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++) {
200
200
llvm::StringRef plugin_name =
201
201
PluginManager::GetScriptedInterfaceNameAtIndex (i);
202
202
if (plugin_name.empty ())
@@ -223,7 +223,7 @@ class CommandObjectScriptingTemplateList : public CommandObjectParsed {
223
223
usages.Dump (s, ScriptedInterfaceUsages::UsageKind::API);
224
224
usages.Dump (s, ScriptedInterfaceUsages::UsageKind::CommandInterpreter);
225
225
226
- if (i != num_templates - 1 )
226
+ if (i != num_extensions - 1 )
227
227
s.EOL ();
228
228
}
229
229
@@ -235,19 +235,19 @@ class CommandObjectScriptingTemplateList : public CommandObjectParsed {
235
235
CommandOptions m_options;
236
236
};
237
237
238
- class CommandObjectMultiwordScriptingTemplate : public CommandObjectMultiword {
238
+ class CommandObjectMultiwordScriptingExtension : public CommandObjectMultiword {
239
239
public:
240
- CommandObjectMultiwordScriptingTemplate (CommandInterpreter &interpreter)
240
+ CommandObjectMultiwordScriptingExtension (CommandInterpreter &interpreter)
241
241
: 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>]" ) {
245
245
LoadSubCommand (
246
246
" list" ,
247
- CommandObjectSP (new CommandObjectScriptingTemplateList (interpreter)));
247
+ CommandObjectSP (new CommandObjectScriptingExtensionList (interpreter)));
248
248
}
249
249
250
- ~CommandObjectMultiwordScriptingTemplate () override = default ;
250
+ ~CommandObjectMultiwordScriptingExtension () override = default ;
251
251
};
252
252
253
253
CommandObjectMultiwordScripting::CommandObjectMultiwordScripting (
@@ -258,9 +258,9 @@ CommandObjectMultiwordScripting::CommandObjectMultiwordScripting(
258
258
" scripting <subcommand> [<subcommand-options>]" ) {
259
259
LoadSubCommand (" run" ,
260
260
CommandObjectSP (new CommandObjectScriptingRun (interpreter)));
261
- LoadSubCommand (" template " ,
262
- CommandObjectSP (
263
- new CommandObjectMultiwordScriptingTemplate ( interpreter)));
261
+ LoadSubCommand (" extension " ,
262
+ CommandObjectSP (new CommandObjectMultiwordScriptingExtension (
263
+ interpreter)));
264
264
}
265
265
266
266
CommandObjectMultiwordScripting::~CommandObjectMultiwordScripting () = default ;
0 commit comments