[clang-tools-extra] [clang-tidy] Add `bugprone-virtual-arithmetic` check (PR #91951)

Carlos Galvez via cfe-commits cfe-commits at lists.llvm.org
Mon May 13 08:51:51 PDT 2024


carlosgalvezp wrote:

I realize it's probably very hard (if not impossible) to detect whether a class is a base class unless it has virtual functions. 

That's why the corresponding AUTOSAR rule bans only non-final classes. But that is a bit overkill and leads to some pain.



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


More information about the cfe-commits mailing list