[libc-commits] [libc] [libc] Resolve multi-line comment error (PR #117636)

via libc-commits libc-commits at lists.llvm.org
Mon Nov 25 14:25:18 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 1df34f12421317a365db96de9b713342c32c13b7 934a20329c6b9057207ad23262cf1b28d9719f83 --extensions h -- libc/src/__support/common.h
``````````

</details>

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

``````````diff
diff --git a/libc/src/__support/common.h b/libc/src/__support/common.h
index a9beeb38cc..8ccc5017fb 100644
--- a/libc/src/__support/common.h
+++ b/libc/src/__support/common.h
@@ -27,7 +27,8 @@
 //
 // For examples:
 // #define LLVM_LIBC_FUNCTION_ATTR_memcpy LLVM_LIBC_EMPTY, [[gnu::weak]]
-// #define LLVM_LIBC_FUNCTION_ATTR_memchr LLVM_LIBC_EMPTY, [[gnu::weak]] [[gnu::visibility("default")]]
+// #define LLVM_LIBC_FUNCTION_ATTR_memchr LLVM_LIBC_EMPTY, [[gnu::weak]]
+// [[gnu::visibility("default")]]
 #define LLVM_LIBC_EMPTY
 
 #define GET_SECOND(first, second, ...) second

``````````

</details>


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


More information about the libc-commits mailing list