================ @@ -0,0 +1,81 @@ +201~200~.. title:: clang-tidy - modernize-use-shared-ptr-array + +modernize-use-shared-ptr-array +============================== + +Finds ``std::shared_ptr<T>`` constructions that manage dynamically allocated +arrays using explicit array deleters and suggests replacing them with +``std::shared_ptr<T[]>``, which has been available since C++17. + +Fix-its are provided when the transformation can be applied safely. Some +patterns are diagnosed without a fix-it (warn-only), and others produce +no diagnostic at all. + +The check requires C++17 or later. ---------------- zeyi2 wrote:
```suggestion The check requires C++17 or later. ``` https://github.com/llvm/llvm-project/pull/199458 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
