- Using one-or-two letter names for globals is asking for shadowing warnings.
- MSVCSTL's container proxy allocations strike again
- MSVCSTL's <string> doesn't define std::out_of_range
- basic_string::substr takes two arguments of type size_type. Let's use that type instead of size_t and ptrdiff_t to avoid narrowing warnings.
Details
Details
- Reviewers
philnik ldionne - Group Reviewers
Restricted Project - Commits
- rG6b90f6745ac7: [libc++][test] Make some string tests MSVC-friendly
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, the CI issues look unrelated. I just came back from OOO so I guess this might have been fixed already.
libcxx/test/std/strings/basic.string/string.cons/dtor.pass.cpp | ||
---|---|---|
48–50 | This is yet another manifestation of MSVCSTL containers' additional memory allocation when iterator debugging is active. | |
libcxx/test/std/strings/basic.string/string.ops/string_substr/substr_rvalue.pass.cpp | ||
31 | I made these quite long and figured I'd wrap them since nothing in the file was much over 80. I should have simply clang-formatted, which I'll do now. |
Is this change just academic, or is MSVC actually allocating more than once?