Repository navigation
v0.0.53
tools/check_nodiscard.py, new (#124): every internal function returningboolcarries the library's<PP>_NODISCARD, every one in asrc/header and every static one in a source file, parts intools/source-dirs.txtincluded. It reads the library's macro frombase.h, takes standard attributes and the two-linebool/name(shape clang-format writes, and fails on a bool declaration in any other shape. Run it with--self-testand without incheck.sh's rules step.maul-conventions.mdstates the rule and lists the check.src/inflate.c,src/elementary.candsrc/elementary_float.c(renamed files) mark their static bool functions; the two elementary files include@LIB@/base.h.
Each library takes these by syncing to this tag, wires the check into check.sh, and marks its own bool functions in the same pull request, with (void) where a drop is deliberate.