[libcxx-commits] [libcxx] [libc++] Remove functions deprecated in C++17 and removed in C++20 (PR #100914)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 27 22:59:24 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 3db5c1eeb08766cdd84a3186a1d2be6ab63b2883 da6d71e7f2e848d33bb253318833aa3b2fd590e1 --extensions ,inc,cpp,h -- libcxx/include/__algorithm/inplace_merge.h libcxx/include/__algorithm/stable_partition.h libcxx/include/__algorithm/stable_sort.h libcxx/include/__exception/operations.h libcxx/include/__memory/temporary_buffer.h libcxx/include/__ostream/basic_ostream.h libcxx/include/exception libcxx/include/memory libcxx/include/syncstream libcxx/modules/std/exception.inc libcxx/src/exception.cpp libcxx/test/libcxx/diagnostics/memory.nodiscard.verify.cpp libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp libcxx/test/std/language.support/support.exception/uncaught/uncaught_exception.pass.cpp libcxx/test/std/utilities/memory/temporary.buffer/overaligned.pass.cpp libcxx/test/std/utilities/memory/temporary.buffer/temporary_buffer.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp
index 2f4e93fc12..44027543aa 100644
--- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.partitions/stable_partition.pass.cpp
@@ -284,7 +284,7 @@ test()
 #if TEST_STD_VER >= 11 && !defined(TEST_HAS_NO_EXCEPTIONS)
   // TODO: Re-enable this test once we get recursive inlining fixed.
   // For now it trips up GCC due to the use of always_inline.
-#if 0
+#  if 0
   { // check that the algorithm still works when no memory is available
     std::vector<int> vec(150, 3);
     vec[5]                             = 6;
@@ -300,7 +300,7 @@ test()
     assert(std::is_partitioned(vec.begin(), vec.end(), [](int i) { return i < 5; }));
     getGlobalMemCounter()->reset();
   }
-#endif
+#  endif
 #endif // TEST_STD_VER >= 11 && !defined(TEST_HAS_NO_EXCEPTIONS)
 }
 

``````````

</details>


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


More information about the libcxx-commits mailing list