[libcxx-commits] [libcxx] [libc++] Diagnoses insufficiently aligned pointers for std::assume_aligned during constant evaluation (PR #73775)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 30 23:31:57 PST 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 e017169dbd0215e892570e74668f5c3289db3310 704476df159f59732ea6fc5cc7c7ea97d1ab9f8d -- libcxx/test/libcxx/utilities/memory/ptr.align/assume_aligned.const_eval.verify.cpp libcxx/include/__memory/assume_aligned.h
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/libcxx/utilities/memory/ptr.align/assume_aligned.const_eval.verify.cpp b/libcxx/test/libcxx/utilities/memory/ptr.align/assume_aligned.const_eval.verify.cpp
index 88c67996a8..a5777451c9 100644
--- a/libcxx/test/libcxx/utilities/memory/ptr.align/assume_aligned.const_eval.verify.cpp
+++ b/libcxx/test/libcxx/utilities/memory/ptr.align/assume_aligned.const_eval.verify.cpp
@@ -21,7 +21,7 @@
 
 template <size_t Size>
 constexpr bool test() {
-  auto data = new char[1];
+  auto data  = new char[1];
   auto data2 = std::assume_aligned<2>(data); // expected-note {{}}
   delete[] data2;
 

``````````

</details>


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


More information about the libcxx-commits mailing list