[clang-tools-extra] Extend bugprone-use-after-move check to allow custom invalidation functions (PR #170346)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 2 20:17:06 PST 2025
================
@@ -388,9 +397,10 @@ void UseAfterMoveFinder::getReinits(
}
}
-enum class MoveType {
- Move, // std::move
- Forward, // std::forward
+enum MoveType {
+ Forward = 0, // std::forward
+ Move = 1, // std::move
+ Invalidation = 2, // other
};
static MoveType determineMoveType(const FunctionDecl *FuncDecl) {
----------------
higher-performance wrote:
Ah good point, done, thanks.
https://github.com/llvm/llvm-project/pull/170346
More information about the cfe-commits
mailing list