[llvm] [clang-tidy] Add performance-move-smart-pointer-contents check. (PR #66139)

via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 03:36:25 PDT 2023


martinboehme wrote:

> This check has issue in my opinion, the semantic of `std::move(*p)` is not same as `*std::move(p)`

Agree that the suggested fix may not always be correct.

I would suggest simply not emitting a suggested fix (i.e. only emitting a warning).

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


More information about the llvm-commits mailing list