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:
Ali Mohammad Pur 2025-08-30 08:18:47 +02:00 committed by Jelle Raaijmakers
parent 8b3e888920
commit 4462348916
Notes: github-actions[bot] 2025-09-01 09:12:52 +00:00
45 changed files with 92 additions and 83 deletions

View file

@ -39,7 +39,7 @@ public:
~Resource();
MimeType const& computed_mime_type() const { return m_computed_mime_type; }
ReadonlyBytes resource_header() const { return m_resource_header; }
ReadonlyBytes resource_header() const LIFETIME_BOUND { return m_resource_header; }
private:
Resource(ReadonlyBytes data, bool no_sniff, MimeType&& default_computed_mime_type);