[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:36:27 PDT 2024


carlosgalvezp wrote:

I'm not very happy about the name, there's no such thing as "virtual arithmetic".

What about "bugprone-pointer-arithmetic-polymorphic-object"?

I rather have a long descriptive name than a short ambiguous name.

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


More information about the cfe-commits mailing list