================ @@ -340,6 +340,50 @@ cplusplus C++ Checkers. +.. _cplusplus-ArrayDelete: + +cplusplus.ArrayDelete (C++) +""""""""""""""""""""""""""" +Reports destructions of arrays of polymorphic objects that are destructed as +their base class. If the dynamic type of the array's object is different from +its static type, calling `delete[]` is undefined. ---------------- whisperity wrote:
```suggestion their base class. If the dynamic type of the array is different from its static type, calling `delete[]` is undefined. ``` https://github.com/llvm/llvm-project/pull/83985 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits