[llvm] Add LLVMGlobalAddDebugInfo to Core.cpp (PR #148747)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 20 22:11:32 PDT 2025


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 HEAD~1 HEAD --extensions h,c,cpp -- llvm/include/llvm-c/Core.h llvm/lib/IR/Core.cpp llvm/tools/llvm-c-test/debuginfo.c llvm/tools/llvm-c-test/llvm-c-test.h llvm/tools/llvm-c-test/main.c
``````````

</details>

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

``````````diff
diff --git a/llvm/tools/llvm-c-test/debuginfo.c b/llvm/tools/llvm-c-test/debuginfo.c
index 78b2f51dc..3fddd0287 100644
--- a/llvm/tools/llvm-c-test/debuginfo.c
+++ b/llvm/tools/llvm-c-test/debuginfo.c
@@ -440,7 +440,7 @@ int llvm_add_globaldebuginfo(void) {
   LLVMValueRef Global = LLVMAddGlobal(M, RecType, "global");
 
   LLVMGlobalAddDebugInfo(Global, GVE);
-  //use AddMetadata to add twice
+  // use AddMetadata to add twice
   int kindId = LLVMGetMDKindID("dbg", 3);
   LLVMGlobalAddMetadata(Global, kindId, GVE);
   size_t numEntries;

``````````

</details>


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


More information about the llvm-commits mailing list