[clang-tools-extra] [clang-tidy] Fix crash on pointer arithmetic with an incomplete type in bugprone-pointer-arithmetic-on-polymorphic-object (PR #215724)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 23:25:03 PDT 2026
================
@@ -139,3 +139,15 @@ void typeAliases(BaseAlias *b, DerivedAlias *d, FinalDerivedAlias *fd,
fdp += 1;
// no-warning
}
+
+// Regression test: pointer arithmetic on a pointer to an incomplete type must
----------------
Hao-Chen2337 wrote:
Done, added the release note as requested and reduced to a one-line comment.
https://github.com/llvm/llvm-project/pull/215724
More information about the cfe-commits
mailing list