[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:05:03 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``,
----------------
EugeneZelenko wrote:

```suggestion
  Detects if class/structs publicly inherits from ``std::enable_shared_from_this``,
```
This is continuation of previous statement, so `check checks` does not sound well.

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


More information about the cfe-commits mailing list