Defined in header <cparse/Parser.hh>

void clearErrors() noexcept;

Empties the internal error vector. Equivalent to errors_.clear().

Parameters

None.

Return value

(none)

Exceptions

noexcept.

Notes

Called automatically by parse() at the start of every outermost parse (nested parses do not clear). Calling clearErrors() manually is unusual but supported — a driver that reuses one Parser across multiple unrelated files may want to reset diagnostics between files without relying on parse()'s implicit clear.

See also