================ @@ -0,0 +1,34 @@ +.. title:: clang-tidy - bugprone-incorrect-enable-shared-from-this + +bugprone-incorrect-enable-shared-from-this +======================================= + +Check if class/struct publicly derives from ``std::enable_shared_from_this``, +because otherwise when ``shared_from_this`` is called it will throw +``std::bad_weak_ptr``. Issues a ``FixItHint`` that can be applied. ---------------- EugeneZelenko wrote:
Last statement is not needed, this information is provided in list of checks. 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