Ff @(disabled=true), do not add that entity's dependencies to the set

This commit is contained in:
gingerBill
2024-07-04 13:09:31 +01:00
parent 053f1759d7
commit 52c219690a
+4
View File
@@ -847,6 +847,10 @@ gb_internal void add_declaration_dependency(CheckerContext *c, Entity *e) {
if (e == nullptr) {
return;
}
if (e->flags & EntityFlag_Disabled) {
// ignore the dependencies if it has been `@(disabled=true)`
return;
}
if (c->decl != nullptr) {
add_dependency(c->info, c->decl, e);
}