.. as suggested by the comment in cata_catch.h:
// To avoid ODR violations, it's important that whenever a file includes
// catch.hpp it also includes stringmaker.h, so that all specializations of
// StringMaker match. Therefore, all test code should include catch.hpp via
// this file.
Honestly, i'm not exactly sure how valuable this is, given that we've
been running with the current odr-violating(?) setup for a while nand
not had many issues, but sure, why not.
Our string_id constants were a mixture of temporaries, locals, and
globals. Pull them all out as globals, for consistency and efficiency.
The efficiency comes from the fact that each string_id instance caches
its respective int_id, and sharing one instance means that value need
not be recomputed.
The static string_id collections at the start of each cpp file should
have a consistent ordering. This is in particular to permit new ones to
be added automatically by clang-tidy checks.
We've added a check to automatically sort them all. Apply it across the
codebase.