diff --git a/Libraries/LibGC/Cell.h b/Libraries/LibGC/Cell.h index 46cc157c42..eee3188920 100644 --- a/Libraries/LibGC/Cell.h +++ b/Libraries/LibGC/Cell.h @@ -22,13 +22,9 @@ namespace GC { template 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 diff --git a/Meta/Lagom/ClangPlugins/LibJSGCPluginAction.cpp b/Meta/Lagom/ClangPlugins/LibJSGCPluginAction.cpp index 62f27a0a65..06cde141f2 100644 --- a/Meta/Lagom/ClangPlugins/LibJSGCPluginAction.cpp +++ b/Meta/Lagom/ClangPlugins/LibJSGCPluginAction.cpp @@ -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())