mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
Everywhere: Slap some [[clang::lifetimebound]] where appropriate
This first pass only applies to the following two cases: - Public functions returning a view type into an object they own - Public ctors storing a view type This catches a grand total of one (1) issue, which is fixed in the previous commit.
This commit is contained in:
parent
8b3e888920
commit
4462348916
Notes:
github-actions[bot]
2025-09-01 09:12:52 +00:00
Author: https://github.com/alimpfard
Commit: 4462348916
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6028
Reviewed-by: https://github.com/gmta ✅
45 changed files with 92 additions and 83 deletions
|
|
@ -35,7 +35,7 @@ public:
|
|||
|
||||
ByteString to_utf8() const;
|
||||
|
||||
Utf32View view() const { return { code_points(), length() }; }
|
||||
Utf32View view() const LIFETIME_BOUND { return { code_points(), length() }; }
|
||||
u32 const* code_points() const { return m_text.data(); }
|
||||
size_t length() const { return m_text.size(); }
|
||||
bool set_text(Document&, StringView);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue