mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
AK+Userland: Remove NOESCAPE
See the next commit for an explanation
This commit is contained in:
parent
d2b3007248
commit
a5f4c9a632
Notes:
sideshowbarker
2024-07-17 18:13:59 +09:00
Author: https://github.com/mattco98
Commit: a5f4c9a632
Pull-request: https://github.com/SerenityOS/serenity/pull/24361
Reviewed-by: https://github.com/ADKaster ✅
16 changed files with 24 additions and 26 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue