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

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 13 09:34:51 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.
+
+  Detects if class/structs publicly inherits from ``std::enable_shared_from_this``,
----------------
5chmidti wrote:

`Detects if a class or struct` to be in sync with the header description and documentation.

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


More information about the cfe-commits mailing list