/// \brief Checks whether a call to the \c size() method can be replaced with a
/// call to \c empty().
///
/// The emptiness of a container should be checked using the \c empty() method
/// instead of the \c size() method. It is not guaranteed that \c size() is a
/// constant-time function, and it is generally more efficient and also shows
/// clearer intent to use \c empty(). Furthermore some containers may implement
/// the \c empty() method but not implement the \c size() method. Using \c
/// empty() whenever possible makes it easier to switch to another container in
/// the future.
I'm not sure how clang-tidy interacts with the analyzer code. When I
tell clang-tidy to list all checks, it seems to list a bunch from the
static analyzer, but I don't know if clang-tidy provides fixes for them.
which checkers are those no body is implementing ?
It looks like the web page wasn't updated. IMO, clang is a fast
moving target and before attempting any contribution, always checkout
trunk and check for something similar to what you had in mind. On
more than one occasion I thought "A ha! Here's something small I can
contribute!" and then I go look in trunk to find out someone has
already done it :-).