[clang-tools-extra] [clang-tidy] Improve documentation of bugprone-pointer-arithmetic-on-polymorphic-object (PR #108324)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 12 03:48:21 PDT 2024
chrchr-github wrote:
Thank for addressing this.
I still wonder why using `new`/`delete` with additional UB (deleting pointer with offset) is necessary in the examples.
Why not simply define a function taking a pointer argument and do the arithmetic on that?
https://github.com/llvm/llvm-project/pull/108324
More information about the cfe-commits
mailing list