3 static struct tracker_list
*ignored
;
5 void add_ignore(int owner
, const char *name
, struct symbol
*sym
)
9 tmp
= malloc(sizeof(*tmp
));
10 tmp
->name
= alloc_string(name
);
13 add_ptr_list(&ignored
, tmp
);
16 int is_ignored(int owner
, const char *name
, struct symbol
*sym
)
20 FOR_EACH_PTR(ignored
, tmp
) {
21 if (tmp
->owner
== owner
&& tmp
->sym
== sym
22 && !strcmp(tmp
->name
, name
))
24 } END_FOR_EACH_PTR(tmp
);
28 static void clear_ignores(void)
30 __free_ptr_list((struct ptr_list
**)&ignored
);
33 void register_smatch_ignore(int id
)
35 add_hook(&clear_ignores
, END_FUNC_HOOK
);