AK+Userland: Remove NOESCAPE

See the next commit for an explanation
This commit is contained in:
Matthew Olsson 2024-05-17 17:09:20 -07:00 committed by Andrew Kaster
commit a5f4c9a632
Notes: sideshowbarker 2024-07-17 18:13:59 +09:00
16 changed files with 24 additions and 26 deletions

View file

@ -40,11 +40,9 @@ namespace AK {
// These annotations are used to avoid capturing a variable with local storage in a lambda that outlives it
#if defined(AK_COMPILER_CLANG)
# define NOESCAPE [[clang::annotate("serenity::noescape")]]
// FIXME: When we get C++23, change this to be applied to the lambda directly instead of to the types of its captures
# define IGNORE_USE_IN_ESCAPING_LAMBDA [[clang::annotate("serenity::ignore_use_in_escaping_lambda")]]
#else
# define NOESCAPE
# define IGNORE_USE_IN_ESCAPING_LAMBDA
#endif