[clang-tools-extra] [clang-tidy] Improve documentation of bugprone-pointer-arithmetic-on-polymorphic-object (PR #108324)
Nicolas van Kempen via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 12 09:13:36 PDT 2024
================
@@ -50,14 +65,19 @@ Options
void bar() {
Base *b = new Base[10];
----------------
nicovank wrote:
Also pass `b` and `d` as parameters instead of `new`/`delete`.
https://github.com/llvm/llvm-project/pull/108324
More information about the cfe-commits
mailing list