[llvm] Add __attribute__((warn_unused_result)) to LLVMErrorRef (PR #87025)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 10:03:33 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 8398ad9cb21736dc57ee4dd766bd0859ef9bd000 642ae4edcd817bc43f557eb0d185a995c0939d5e --extensions c,cpp,h -- llvm/examples/OrcV2Examples/OrcV2CBindingsLazy/OrcV2CBindingsLazy.c llvm/examples/OrcV2Examples/OrcV2CBindingsVeryLazy/OrcV2CBindingsVeryLazy.c llvm/include/llvm-c/Error.h llvm/include/llvm-c/ExternC.h llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp b/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
index a4fd71b98e..68d53dc687 100644
--- a/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
@@ -640,7 +640,8 @@ void Materialize(void *Ctx, LLVMOrcMaterializationResponsibilityRef MR) {
       {OtherSymbol, Flags},
       {DependencySymbol, Flags},
   };
-  (void)LLVMOrcMaterializationResponsibilityDefineMaterializing(MR, NewSymbols, 2);
+  (void)LLVMOrcMaterializationResponsibilityDefineMaterializing(MR, NewSymbols,
+                                                                2);
 
   LLVMOrcRetainSymbolStringPoolEntry(OtherSymbol);
   LLVMOrcMaterializationResponsibilityRef OtherMR = NULL;
@@ -696,7 +697,8 @@ void Materialize(void *Ctx, LLVMOrcMaterializationResponsibilityRef MR) {
       /* .Dependencies = */ &Dependency,
       /* .NumDependencies = */ 1};
 
-  (void)LLVMOrcMaterializationResponsibilityNotifyEmitted(MR, &DependenceSet, 1);
+  (void)LLVMOrcMaterializationResponsibilityNotifyEmitted(MR, &DependenceSet,
+                                                          1);
   LLVMOrcDisposeMaterializationResponsibility(MR);
 }
 

``````````

</details>


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


More information about the llvm-commits mailing list