[PATCH] D30650: [clang-tidy] misc-use-after-move: Fix failing assertion

Martin Böhme via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 6 06:51:46 PST 2017


mboehme added inline comments.


================
Comment at: test/clang-tidy/misc-use-after-move.cpp:285
   // CHECK-MESSAGES: [[@LINE-1]]:3: warning: 'a' used after it was moved
-  // CHECK-MESSAGES: [[@LINE-3]]:6: note: move occurred here
+  // CHECK-MESSAGES: [[@LINE-3]]:7: note: move occurred here
 }
----------------
The column in this message was nondeterministically being reported as either 6 or 7. Disallowing InitListExpr as the moving call should guarantee that this will always be 7.


https://reviews.llvm.org/D30650





More information about the cfe-commits mailing list