[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:23 PST 2026


================
@@ -205,6 +214,16 @@ Changes in existing checks
   - Added support for analyzing function parameters with the `AnalyzeParameters`
     option.
 
+- Improved :doc:`modernize-make-shared
+  <clang-tidy/checks/modernize/make-shared>` check by adding a new option
+  ``MakeSmartPtrType`` to specify the smart pointer type to match, with a
+  default value of ``::std::shared_ptr``.
+
+- Improved :doc:`modernize-make-unique
+  <clang-tidy/checks/modernize/make-unique>` check by adding a new option
+  ``MakeSmartPtrType`` to specify the smart pointer type to match, with a
+  default value of ``::std::unique_ptr``.
----------------
EugeneZelenko wrote:

```suggestion
  `MakeSmartPtrType` to specify the smart pointer type to match.
```

https://github.com/llvm/llvm-project/pull/117529


More information about the cfe-commits mailing list