diff options
author | Ziqing Luo <ziqing@udel.edu> | 2025-06-25 10:32:03 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-25 09:32:03 +0800 |
commit | 3140333872f6e54693397882dead2c1387c91189 (patch) | |
tree | 0aa5629323e01a6d7dd24da0557270e69521ab8c /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | e6d6bb52980e8b2deef51499ba7b39261f0a7c5b (diff) | |
download | llvm-3140333872f6e54693397882dead2c1387c91189.zip llvm-3140333872f6e54693397882dead2c1387c91189.tar.gz llvm-3140333872f6e54693397882dead2c1387c91189.tar.bz2 |
[-Wunsafe-buffer-usage] Support span creation from std::initializer_list and begin/end pairs (#145311)
Support safe construction of `std::span` from `begin` and `end` calls on
hardened containers or views or `std::initializer_list`s.
For example, the following code is safe:
```
void create(std::initializer_list<int> il) {
std::span<int> input{ il.begin(), il.end() }; // no warn
}
```
rdar://152637380
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions