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 origin/main HEAD --extensions cpp -- 
lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp 
--diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git 
a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp 
b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
index e655f5f5b..e4df13901 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
@@ -123,14 +123,17 @@ public:
       PyStatus status =
           PyConfig_SetBytesString(&config, &config.home, 
g_python_home.c_str());
       if (PyStatus_Exception(status))
-        llvm::report_fatal_error(llvm::Twine("Failed to set the Python config: 
'") + status.err_msg + "'.");
+        llvm::report_fatal_error(
+            llvm::Twine("Failed to set the Python config: '") + status.err_msg 
+
+            "'.");
     }
 
     config.install_signal_handlers = 0;
     PyStatus status = Py_InitializeFromConfig(&config);
     PyConfig_Clear(&config);
     if (PyStatus_Exception(status))
-      llvm::report_fatal_error(llvm::Twine("Python failed to initialize: '") + 
status.err_msg + "'.");
+      llvm::report_fatal_error(llvm::Twine("Python failed to initialize: '") +
+                               status.err_msg + "'.");
 #else
     Py_InitializeEx(/*install_sigs=*/0);
     if (!Py_IsInitialized())

``````````

</details>


https://github.com/llvm/llvm-project/pull/181160
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to