LibGC+Meta: Remove IGNORE_GC macro
This commit is contained in:
parent
d149e55ff8
commit
69a457a63b
2 changed files with 0 additions and 7 deletions
|
|
@ -22,13 +22,9 @@ namespace GC {
|
|||
template<typename T>
|
||||
struct IsVisitable;
|
||||
|
||||
// This instrumentation tells analysis tooling to ignore a potentially mis-wrapped GC-allocated member variable
|
||||
// It should only be used when the lifetime of the GC-allocated member is always longer than the object
|
||||
#if defined(AK_COMPILER_CLANG)
|
||||
# define IGNORE_GC [[clang::annotate("serenity::ignore_gc")]]
|
||||
# define GC_ALLOW_CELL_DESTRUCTOR [[clang::annotate("ladybird::allow_cell_destructor")]]
|
||||
#else
|
||||
# define IGNORE_GC
|
||||
# define GC_ALLOW_CELL_DESTRUCTOR
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -363,9 +363,6 @@ bool LibJSGCVisitor::VisitCXXRecordDecl(clang::CXXRecordDecl* record)
|
|||
auto record_is_cell = record_inherits_from_cell(*record);
|
||||
|
||||
for (clang::FieldDecl const* field : record->fields()) {
|
||||
if (decl_has_annotation(field, "serenity::ignore_gc"))
|
||||
continue;
|
||||
|
||||
// Skip anonymous structs/unions - their members are accessed indirectly
|
||||
// and may be handled specially (e.g., tagged unions with type checks)
|
||||
if (field->isAnonymousStructOrUnion())
|
||||
|
|
|
|||
Loading…
Reference in a new issue