Legacy code often used a function signature of the form bool Get...(const& in, mut& in_out); to implement a getter that optionally returns a value.
In modern code, this can be replaced by std::optional<_> Get...(const& in);.
However, some legacy code remains. To ensure that the “imaginary optional” is not unwrapped when the getter returns false, add a C++17 [[nodiscard]] attribute to all those legacy functions.
There were only a few places that ignored the return value. I’ve fixed them in separate commits.
This should be easy to review via --word-diff-regex=. and then confirming that the attribute was added to such a getter.