================
@@ -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.
+Recognized Deleter Forms
+------------------------
+
+The following deleter forms trigger the check:
+
+- ``std::default_delete<T[]>()`` and ``std::default_delete<T[]>{}``
+- Aliases of ``std::default_delete<T[]>`` introduced via ``using`` or
+  ``typedef``
+  - Qualified, namespace-aliased, and unqualified spellings of
----------------
zeyi2 wrote:

Please fix formatting.

https://github.com/llvm/llvm-project/pull/199458
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to