[libcxx-commits] [libcxx] [ASan][libc++] Annotating `std::basic_string` with all allocators (PR #75845)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Dec 27 01:03:12 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 c5871712ae9d47c0015c3f9c805bed04a913d034 27c62af1071de15d805942445ca4ee90ddcf0314 -- libcxx/test/libcxx/containers/strings/basic.string/asan.pass.cpp libcxx/test/libcxx/containers/strings/basic.string/asan_turning_off.pass.cpp libcxx/include/string libcxx/test/support/asan_testing.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/test/libcxx/containers/strings/basic.string/asan_turning_off.pass.cpp b/libcxx/test/libcxx/containers/strings/basic.string/asan_turning_off.pass.cpp
index 6791fd4686..fd1785b3a4 100644
--- a/libcxx/test/libcxx/containers/strings/basic.string/asan_turning_off.pass.cpp
+++ b/libcxx/test/libcxx/containers/strings/basic.string/asan_turning_off.pass.cpp
@@ -65,7 +65,7 @@ struct user_allocator {
friend bool operator!=(user_allocator x, user_allocator y) { return !(x == y); }
T* allocate(size_t n) {
- if(n * sizeof(T) > 8 * 1024)
+ if (n * sizeof(T) > 8 * 1024)
throw std::bad_array_new_length();
return (T*)reuse_buffers.alloc();
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/75845
More information about the libcxx-commits
mailing list