Everywhere: Mark a bunch of function parameters as NOESCAPE

This fixes the relevant warnings when running LibJSGCVerifier. Note that
the analysis is only performed over LibJS-adjacent code, but could be
performed over the entire codebase. That will have to wait for a future
commit.
This commit is contained in:
Matthew Olsson 2024-04-07 16:30:59 -07:00 committed by Andreas Kling
commit ff00d21d58
Notes: sideshowbarker 2024-07-16 18:26:46 +09:00
16 changed files with 25 additions and 24 deletions

View file

@ -114,8 +114,8 @@ public:
protected:
Model();
void for_each_view(Function<void(AbstractView&)>);
void for_each_client(Function<void(ModelClient&)>);
void for_each_view(NOESCAPE Function<void(AbstractView&)>);
void for_each_client(NOESCAPE Function<void(ModelClient&)>);
void did_update(unsigned flags = UpdateFlag::InvalidateAllIndices);
static bool string_matches(StringView str, StringView needle, unsigned flags)