[clang-tools-extra] [clang-tidy] In C++17, callee is guaranteed to be sequenced before arguments. (PR #93623)

Kefu Chai via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 7 19:50:54 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;
+
----------------
tchaikov wrote:

after a second thought, i am removing this initialization, and just set the default value in the `UseAfterMove`. and move the accompanied comment there.

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


More information about the cfe-commits mailing list