[clang-tools-extra] [clang-tidy] modernize-make-shared: Add MakeSmartPtrType option (PR #117529)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 26 14:51:20 PST 2024


================
@@ -150,6 +150,16 @@ New check aliases
 Changes in existing checks
 ^^^^^^^^^^^^^^^^^^^^^^^^^^
 
+- Improved :doc:modernize-make-shared
+  <clang-tidy/checks/modernize/make-shared> check by adding a new option 
+  `MakeSmartPtrType`` to specify the corresponding smart pointer type, 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 corresponding smart pointer type, with a
----------------
EugeneZelenko wrote:

```suggestion
  `MakeSmartPtrType` to specify the corresponding smart pointer type, with a
```

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


More information about the cfe-commits mailing list