- with appropriate change in semantics
- change the way the checks are listed
lint.toplev_check <T> (stack);
}
- virtual void list () const
+ virtual checkdescriptor descriptor () const
{
- dwarflint::list_check (T::descriptor ());
+ return T::descriptor ();
}
};
{
for (std::vector <item *>::const_iterator it = _m_items.begin ();
it != _m_items.end (); ++it)
- (*it)->list ();
-}
-
-void
-dwarflint::list_check (checkdescriptor const &cd)
-{
- std::cout << cd.name << std::endl;
+ {
+ checkdescriptor const &cd = (*it)->descriptor ();
+ std::cout << cd.name << ' ' << cd.groups << std::endl;
+ }
}
namespace
struct item
{
virtual void run (checkstack &stack, dwarflint &lint) = 0;
- virtual void list () const = 0;
+ virtual checkdescriptor descriptor () const = 0;
};
static check_registrar *inst ()
template <class T>
T *toplev_check (checkstack &stack, T *tag = NULL);
-
- static void list_check (checkdescriptor const &cd);
};
#endif//DWARFLINT_HH