mrdocs::Config::errorOnEmptyCorpus

Treat an empty corpus as an error

Synopsis

Declared in <mrdocs/Config.hpp>

bool errorOnEmptyCorpus = true;

Description

When set to true, MrDocs treats an empty corpus as a hard error and exits with a failure status instead of emitting a warning and succeeding.

A corpus counts as empty when no symbols are extracted; because the global namespace is always present in the model, a corpus that contains only the global namespace and no other declaration is also treated as empty.

This usually means nothing was extracted, which is rarely intended in CI, so this turns that silent success into a detectable failure.

This escalation applies regardless of the warn‐as‐error option.

Created with MrDocs