diff options
author | nerix <nerixdev@outlook.de> | 2025-07-16 11:02:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-16 10:02:50 +0100 |
commit | 5ae49393957c6b4d47ace7aaf5fc1e0388d3a695 (patch) | |
tree | 12c98b479a9e0bafd4ab318b41f42d9b8ab03876 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 905bb5bddb690765cab5416d55ab017d7c832eb3 (diff) | |
download | llvm-5ae49393957c6b4d47ace7aaf5fc1e0388d3a695.zip llvm-5ae49393957c6b4d47ace7aaf5fc1e0388d3a695.tar.gz llvm-5ae49393957c6b4d47ace7aaf5fc1e0388d3a695.tar.bz2 |
[LLDB] Add formatters for MSVC STL std::vector (#147538)
This adds synthetic child providers for `std::vector<T>` and
`std::vector<bool>` for MSVC's STL.
The structure of a `std::vector<T>` is relatively similar to libc++'s
implementation that uses `__begin` and `__end`.
`std::vector<bool>` is different. It's a `std::vector<unsigned int>`
wrapper instead of `std::vector<uint8_t>`. This makes the calculation
slightly less simple. I put a comment in the `GetChildAtIndex` to make
this clear.
- [NatVis for
`std::vector<T>`](https://github.com/microsoft/STL/blob/313964b78a8fd5a52e7965e13781f735bcce13c5/stl/debugger/STL.natvis#L1193-L1205)
- [NatVis for
`std::vector<bool>`](https://github.com/microsoft/STL/blob/313964b78a8fd5a52e7965e13781f735bcce13c5/stl/debugger/STL.natvis#L1167-L1179)
Towards #24834.
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions