[clang-tools-extra] [clang-tidy] modernize-make-shared: Add MakeSmartPtrType option (PR #117529)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 18 07:47:21 PST 2026
================
@@ -121,6 +121,15 @@ New checks
``llvm::to_vector(llvm::make_filter_range(...))`` that can be replaced with
``llvm::map_to_vector`` and ``llvm::filter_to_vector``.
+- New :doc:`misc-make-smart-ptr
+ <clang-tidy/checks/misc/make-smart-ptr>` check.
+
+ Finds constructions of custom smart pointer types from raw ``new`` expressions
+ and replaces them with a configurable factory function. Unlike
+ ``modernize-make-shared`` and ``modernize-make-unique``, this check requires
----------------
EugeneZelenko wrote:
Please use links as in documentation.
https://github.com/llvm/llvm-project/pull/117529
More information about the cfe-commits
mailing list