[clang-tools-extra] [clang-tidy][cppcoreguidelines-missing-std-forward] Do not warn when the parameter is used in a `static_cast`. (PR #99477)

Carlos Galvez via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 18 08:06:53 PDT 2024


carlosgalvezp wrote:

This is not allowed by the relevant rule of the C++ Core Guidelines. We must be careful to implement exactly only what the rules say, nothing more. You can on course open a ticket to the C++ Core Guidelines asking them to change the rule text.

IMHO this case seems too niche and should be handled by a NOLINT instead. Otherwise, and off-by-default  configuration option.

https://github.com/llvm/llvm-project/pull/99477


More information about the cfe-commits mailing list