[Lldb-commits] [lldb] Add commands to list/enable/disable plugins (PR #134418)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 4 12:17:46 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- lldb/source/Commands/CommandObjectPlugin.cpp lldb/source/Commands/CommandObjectSettings.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Commands/CommandObjectPlugin.cpp b/lldb/source/Commands/CommandObjectPlugin.cpp
index e67a11c9c..a0955b7ea 100644
--- a/lldb/source/Commands/CommandObjectPlugin.cpp
+++ b/lldb/source/Commands/CommandObjectPlugin.cpp
@@ -126,7 +126,8 @@ static int ActOnMatchingPlugins(
for (const PluginNamespace &plugin_namespace : PluginNamespaces) {
std::vector<RegisteredPluginInfo> matching_plugins;
- for (const RegisteredPluginInfo &plugin_info : plugin_namespace.get_info()) {
+ for (const RegisteredPluginInfo &plugin_info :
+ plugin_namespace.get_info()) {
std::string qualified_name =
(plugin_namespace.name + "." + plugin_info.name).str();
if (pattern.match(qualified_name))
@@ -147,7 +148,7 @@ static std::string GetPluginNamePatternString(llvm::StringRef user_input,
bool add_default_glob) {
std::string pattern_str = user_input.empty() ? "*" : user_input;
- if (add_default_glob && pattern_str != "*")
+ if (add_default_glob && pattern_str != "*")
pattern_str = "*" + pattern_str + "*";
return pattern_str;
@@ -356,7 +357,7 @@ protected:
int num_matching = SetEnableOnMatchingPlugins(*plugin_glob, result, false);
- if (num_matching == 0)
+ if (num_matching == 0)
result.AppendErrorWithFormat("Found no matching plugins to disable");
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/134418
More information about the lldb-commits
mailing list