std::cout << std::endl;
#endif
+ // We always allow scheduling hidden checks. Those are service
+ // routines that the user doesn't even see it the list of checks.
+ assert (!stack.empty ());
+ if (stack.back ()->hidden ())
+ return true;
+
bool should = false;
for (const_iterator it = begin (); it != end (); ++it)
{
lowlevel_checks::lowlevel_checks (checkstack &stack, dwarflint &lint)
{
- // Then check whatever else is there. For each existing section
- // request that the check passes. Re-requesting already-passed
- // checks is OK, the scheduler caches it.
+ // Then check all the debug sections that are there. For each
+ // existing section request that the check passes. Re-requesting
+ // already-passed checks is OK, the scheduler caches it.
#define SEC(NAME) \
section<sec_##NAME> *NAME = \
lint.toplev_check<section<sec_##NAME> > (stack); \
checkdescriptor const *
load_sections::descriptor ()
{
- static checkdescriptor cd ("load_sections");
+ static checkdescriptor cd
+ (checkdescriptor::create ("load_sections")
+ .hidden ());
return &cd;
}
static checkdescriptor const *descriptor () {
static checkdescriptor cd
(checkdescriptor::create (section_name[sec_id])
- .inherit<section_base> ());
+ .inherit<section_base> ()
+ .hidden ());
return &cd;
}