1 // Highlight object declarations that don't look like object class but
2 // accidentally inherit from it.
6 type parent_t =~ ".*Class$";
13 @script:python filter depends on match@
16 is_class_obj = obj_t.endswith('Class')
17 cocci.include_match(not is_class_obj)
19 @replacement depends on filter@
20 identifier match.obj_t, match.fld;