[Lldb-commits] [lldb] [lldb/Commands] Add `scripting template list` command with auto discovery (PR #97273)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Jul 2 21:46:44 PDT 2024
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 4e567242133678c88a6cb5aeb979c6148f6a7035 54e2299fead40dba247c65ea4974a550843a9b6d -- lldb/include/lldb/Core/PluginManager.h lldb/include/lldb/Interpreter/Interfaces/ScriptedInterface.h lldb/include/lldb/lldb-private-interfaces.h lldb/source/Commands/CommandObjectScripting.cpp lldb/source/Core/PluginManager.cpp lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface.cpp lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface.h lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.cpp lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedThreadPlanPythonInterface.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Commands/CommandObjectScripting.cpp b/lldb/source/Commands/CommandObjectScripting.cpp
index 7efecfe126..9886070227 100644
--- a/lldb/source/Commands/CommandObjectScripting.cpp
+++ b/lldb/source/Commands/CommandObjectScripting.cpp
@@ -231,10 +231,10 @@ protected:
PluginManager::GetScriptedInterfaceLanguageAtIndex(i);
if (lang != m_options.m_language)
continue;
-
+
if (!num_listed_interface)
s.EOL();
-
+
num_listed_interface++;
llvm::StringRef desc =
@@ -253,7 +253,7 @@ protected:
if (i != num_templates - 1)
s.EOL();
}
-
+
if (!num_listed_interface)
s << " None.\n";
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/97273
More information about the lldb-commits
mailing list