[libc-commits] [libc] [libc] implement `memalignment` (PR #132493)

via libc-commits libc-commits at lists.llvm.org
Fri Mar 21 16:43:13 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 fe6bced9e40f7d4c35550c51ef9cdc7be2a055e7 152894ee1076d18efed7730bed774e0f2b5aa9f9 --extensions h,c -- libc/src/stdlib/memalignment.c libc/src/stdlib/memalignment.h
``````````

</details>

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

``````````diff
diff --git a/libc/src/stdlib/memalignment.h b/libc/src/stdlib/memalignment.h
index 8ed900122a..b50aa02d50 100644
--- a/libc/src/stdlib/memalignment.h
+++ b/libc/src/stdlib/memalignment.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for memalignment --------------------------*- C++ -*-===//
+//===-- Implementation header for memalignment --------------------------*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -14,9 +15,8 @@
 
 namespace LIBC_NAMESPACE_DECL {
 
-size_t memalignment(const void* p);
+size_t memalignment(const void *p);
 
 } // namespace LIBC_NAMESPACE_DECL
 
 #endif // LLVM_LIBC_SRC_STDLIB_LDIV_H
-

``````````

</details>


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


More information about the libc-commits mailing list