[clang-tools-extra] [clang-tidy] Unsafe CRTP check (PR #82403)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 23 13:47:27 PST 2024


================
@@ -100,6 +100,11 @@ Improvements to clang-tidy
 New checks
 ^^^^^^^^^^
 
+- New :doc:`bugprone-crtp-constructor-accessibility
+  <clang-tidy/checks/bugprone/crtp-constructor-accessibility>` check.
+
+  Detects error-prone CRTP usage, when the CRTP can be constructed outside itself and the derived class.
----------------
PiotrZSL wrote:

Wrap on 80 characters

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


More information about the cfe-commits mailing list