================ @@ -98,6 +98,11 @@ Improvements to clang-tidy New checks ^^^^^^^^^^ +- New :doc:`bugprone-public-enable-shared-from-this + <clang-tidy/checks/bugprone/public-enable-shared-from-this>` check. + + Checks if a class deriving from enable_shared_from_this has public access specifiers, because otherwise the program will crash when shared_from_this is called. ---------------- MichelleCDjunaidi wrote:
ok manually reformatted since git clang format doesn't work on rst, and changed documentation https://github.com/llvm/llvm-project/pull/102299 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits