| Issue |
169941
|
| Summary |
Suggest [[clang::lifetimebound]] for implicit this parameter
|
| Labels |
clang:temporal-safety
|
| Assignees |
|
| Reporter |
usx95
|
```cpp
struct S {
const S& get() { return *this; }
};
struct T {
std::string data;
std::string_view getView() { return data; }
}
```
Expected suggestions:
```cpp
const S& get() [[clang::lifetimebound]] { return *this; }
std::string_view getView() [[clang::lifetimebound]] { return data; }
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs