[clang-tools-extra] [clang-tidy] In C++17, callee is guaranteed to be sequenced before arguments. (PR #93623)
Julian Schmidt via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 7 16:18:36 PDT 2024
================
@@ -175,6 +218,10 @@ bool UseAfterMoveFinder::findInternal(const CFGBlock *Block,
MovingCall != nullptr &&
Sequence->potentiallyAfter(MovingCall, Use);
+ // We default to false here and change this to true if required in
+ // find().
+ TheUseAfterMove->UseHappensInLaterLoopIteration = false;
+
----------------
5chmidti wrote:
The initialization could also happen in the struct itself (we should initialize `EvaluationOrderUndefined` in the struct as well).
https://github.com/llvm/llvm-project/pull/93623
More information about the cfe-commits
mailing list