mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
AK+Userland: Remove NOESCAPE
See the next commit for an explanation
This commit is contained in:
committed by
Andrew Kaster
parent
d2b3007248
commit
a5f4c9a632
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user