[llvm] [llvm][Support] Add support for executing a detached process (PR #81708)

via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 25 18:50:24 PST 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 529b5705db2ccefeee2c9b8cb5144e1f5a6420de e19962e349a364db9ee92408dc33ce8fc61b658f -- llvm/include/llvm/Support/Program.h llvm/lib/Support/Program.cpp llvm/lib/Support/Unix/Program.inc llvm/lib/Support/Windows/Program.inc llvm/unittests/Support/ProgramTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/Support/ProgramTest.cpp b/llvm/unittests/Support/ProgramTest.cpp
index 8733cb5f20..df5e95abaf 100644
--- a/llvm/unittests/Support/ProgramTest.cpp
+++ b/llvm/unittests/Support/ProgramTest.cpp
@@ -268,7 +268,7 @@ TEST_F(ProgramEnvTest, TestExecuteNoWaitDetached) {
 
 #if _WIN32
     HWND ConsoleWnd = GetConsoleWindow();
-    if(ConsoleWnd == NULL)
+    if (ConsoleWnd == NULL)
       exit(100);
     else
       exit(200);

``````````

</details>


https://github.com/llvm/llvm-project/pull/81708


More information about the llvm-commits mailing list