[clang] [clang-tools-extra] [clang-tidy] Add [[clang::usable_on_move]] to inform bugprone-use-aft… (PR #216121)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 13 12:50:43 PDT 2026
https://github.com/Endilll commented:
I guess I got pulled into this PR by accident, but I left a review nevertheless.
> I'm quite unhappy with the attribute name and open to suggestions.
I can see how you ended up with `usable_on_moved`, and I don't have suggestions that are definitely better than that, but I do have a rather radical idea that might help: `no_preconditions`. Admittedly, this feels rather generic and cryptic at the same time.
https://github.com/llvm/llvm-project/pull/216121
More information about the cfe-commits
mailing list