[clang-tools-extra] [clang-tidy] Create bugprone-incorrect-enable-shared-from-this check (PR #102299)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 3 21:12:20 PDT 2024


================
@@ -98,6 +98,13 @@ Improvements to clang-tidy
 New checks
 ^^^^^^^^^^
 
+- New :doc:`bugprone-incorrect-enable-shared-from-this
+  <clang-tidy/checks/bugprone/incorrect-enable-shared-from-this>` check.
+
+  Check if class/structs publicly inherits from ``std::enable_shared_from_this``,
----------------
MichelleCDjunaidi wrote:

Noted, will do.

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


More information about the cfe-commits mailing list