diff options
| author | Afonso Faria <oracle-main@protonmail.com> | 2024-09-20 23:23:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-21 00:23:17 +0200 |
| commit | c24418ad914c64c78facb1bb77951b161448fcc0 (patch) | |
| tree | 70b65a7755c222241be6d20b4688e2f6b932c163 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 4b4ea6d84bddb5e7b3f144d18630390755e8f7b6 (diff) | |
[clang-tidy] Add `std::span` to default `bugprone-dangling-handle.HandleClasses` (#107711)
`std::span` suffers from the same dangling issues as `std::string_view`.
This patch adds `std::span` to the default list of handle classes in
`bugprone-dangling-handle`, allowing clang-tidy to catch e.g. the
following:
```cpp
span<int> f() {
// All these return values will dangle.
array<int, 1> A;
return {A};
vector<int> Array;
return {Array};
}
```
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
