[clang] [PassBuilder] Add a mechanism for adding passbuilder callbacks for static builds (PR #70171)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 26 10:11:58 PDT 2023


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 3e79f4d2c24faaa24a4a12041b4c33d39fec2ec7 a49b8e2da32c1be06ea956198ba0d01006d64c92 -- clang/test/DriverPlugin/plugintest.c clang/tools/clang-hello-plugin-test/helloplugin.cpp clang/include/clang/Basic/CodeGenOptions.h clang/lib/CodeGen/BackendUtil.cpp clang/tools/driver/cc1_main.cpp llvm/include/llvm/Passes/PassBuilder.h
``````````

</details>

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

``````````diff
diff --git a/clang/tools/clang-hello-plugin-test/helloplugin.cpp b/clang/tools/clang-hello-plugin-test/helloplugin.cpp
index 5b73454c30af..bccada911b7c 100644
--- a/clang/tools/clang-hello-plugin-test/helloplugin.cpp
+++ b/clang/tools/clang-hello-plugin-test/helloplugin.cpp
@@ -61,6 +61,6 @@ extern int clang_main(int Argc, char **Argv,
                       const llvm::ToolContext &ToolContext);
 
 int clang_hello_plugin_test_main(int Argc, char **Argv,
-                            const llvm::ToolContext &ToolContext) {
+                                 const llvm::ToolContext &ToolContext) {
   return clang_main(Argc, Argv, ToolContext);
 }

``````````

</details>


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


More information about the cfe-commits mailing list