Skip to content

Commit 681ceaa

Browse files
committed
Fix formatting and compile error
1 parent e1c3d46 commit 681ceaa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lldb/source/Commands/CommandObjectPlugin.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ static int ActOnMatchingPlugins(
145145
// Return a string in glob syntax for matching plugins.
146146
static std::string GetPluginNamePatternString(llvm::StringRef user_input,
147147
bool add_default_glob) {
148-
std::string pattern_str = user_input.empty() ? "*" : user_input;
148+
std::string pattern_str = user_input.empty() ? "*" : user_input.str();
149149

150-
if (add_default_glob && pattern_str != "*")
150+
if (add_default_glob && pattern_str != "*")
151151
pattern_str = "*" + pattern_str + "*";
152152

153153
return pattern_str;
@@ -232,9 +232,9 @@ The plugin information is formatted as shown below
232232
233233
An enabled plugin is marked with [+] and a disabled plugin is marked with [-].
234234
235-
Selecting plugins
236-
------------------
237-
plugin list [<plugin-namespace>.][<plugin-name>]
235+
Plugins can be listed by namespace and name with:
236+
237+
plugin list [<plugin-namespace>.][<plugin-name>]
238238
239239
Plugin names are specified using glob patterns. The pattern will be matched
240240
against the plugins fully qualified name, which is composed of the namespace,
@@ -356,7 +356,7 @@ class CommandObjectPluginDisable : public CommandObjectParsed {
356356

357357
int num_matching = SetEnableOnMatchingPlugins(*plugin_glob, result, false);
358358

359-
if (num_matching == 0)
359+
if (num_matching == 0)
360360
result.AppendErrorWithFormat("Found no matching plugins to disable");
361361
}
362362

0 commit comments

Comments
 (0)