[all-commits] [llvm/llvm-project] 73b092: [libc++][test] Make `deallocate_size.pass.cpp` MSV...
A. Jiang via All-commits
all-commits at lists.llvm.org
Thu Oct 30 19:08:00 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 73b092ff3398321b91f913c66bf9fe3bbf4d097a
https://github.com/llvm/llvm-project/commit/73b092ff3398321b91f913c66bf9fe3bbf4d097a
Author: A. Jiang <de34 at live.cn>
Date: 2025-10-31 (Fri, 31 Oct 2025)
Changed paths:
M libcxx/test/std/strings/basic.string/string.capacity/deallocate_size.pass.cpp
Log Message:
-----------
[libc++][test] Make `deallocate_size.pass.cpp` MSVC-friendly (#165162)
This patch contains several changes to `deallocate_size.pass.cpp`:
1. `static_cast`-ing some parameters to `size_t` to avoid narrowing.
2. Changing the type of loop variable `i` to `unsigned int` avoid
signedness mismatch with the constructor parameter.
3. Separately counting allocations and deallocations in variables
`allocated_` and `deallocated_`, and changing their type to `uint64_t`.
4. Avoiding `assert`-ing count of allocations when a `basic_string` is
allocated, just `assert`-ing after destruction instead.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list