[libcxx-commits] [libcxx] [libc++][memory] Implements LWG3307. (PR #99776)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 20 12:22:16 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 c59ee7ec627533e00f654d052ade51c9daf7e722 425cdff68fe1e377034cba0b2a21ca4d1ba76624 --extensions cpp,h -- libcxx/test/std/utilities/memory/default.allocator/allocator.members/allocate_at_least.verify.cpp libcxx/include/__memory/allocator.h libcxx/test/std/utilities/memory/default.allocator/allocator.members/allocate.verify.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/utilities/memory/default.allocator/allocator.members/allocate_at_least.verify.cpp b/libcxx/test/std/utilities/memory/default.allocator/allocator.members/allocate_at_least.verify.cpp
index cfee54198e..4a08dcc506 100644
--- a/libcxx/test/std/utilities/memory/default.allocator/allocator.members/allocate_at_least.verify.cpp
+++ b/libcxx/test/std/utilities/memory/default.allocator/allocator.members/allocate_at_least.verify.cpp
@@ -20,7 +20,8 @@ struct incomplete;
 void f() {
   {
     std::allocator<int> a;
-    a.allocate_at_least(3); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
+    a.allocate_at_least(
+        3); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
   }
   {
     std::allocator<void> a;

``````````

</details>


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


More information about the libcxx-commits mailing list