[clang] clang::drop attribute (PR #204318)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 17 06:19:13 PDT 2026


kelbon wrote:


> I don't understand this example. If we change `bar(std::move(x))` to `bar(drop(x))`, `use(x)` uses `x` after it has been dropped.

use(x) will be error

> bugprone-use-after-move

Its cland-tidy check, not clang itself, isnt it?


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


More information about the cfe-commits mailing list