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 c,h,cpp --
clang/include/clang/Driver/Compilation.h clang/include/clang/Driver/Driver.h
clang/include/clang/Driver/Job.h clang/lib/Driver/Compilation.cpp
clang/lib/Driver/Driver.cpp clang/lib/Driver/Job.cpp
clang/lib/Driver/ToolChains/Clang.cpp clang/test/Driver/cc1-spawnprocess.c
clang/test/Driver/clang-translation.c clang/tools/driver/cc1_main.cpp
clang/tools/driver/driver.cpp llvm/include/llvm/Support/Driver.h
llvm/unittests/Support/LLVMToolSession/LLVMToolSessionTest.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/clang/tools/driver/cc1_main.cpp b/clang/tools/driver/cc1_main.cpp
index 5ed0c3727..c49648cbf 100644
--- a/clang/tools/driver/cc1_main.cpp
+++ b/clang/tools/driver/cc1_main.cpp
@@ -290,8 +290,8 @@ int cc1_main(ArrayRef<const char *> Argv, const char
*Argv0, void *MainAddr) {
// Set an error handler, so that any LLVM backend diagnostics go through our
// error handler.
- llvm::install_fatal_error_handler(LLVMErrorHandler,
-
static_cast<void*>(&Clang->getDiagnostics()));
+ llvm::install_fatal_error_handler(
+ LLVMErrorHandler, static_cast<void *>(&Clang->getDiagnostics()));
DiagsBuffer->FlushDiagnostics(Clang->getDiagnostics());
if (!Success)
``````````
</details>
https://github.com/llvm/llvm-project/pull/240706
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits