[PATCH] D27806: [clang-tidy] Add obvious-invalid-range

Malcolm Parsons via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 15 09:51:48 PST 2016

malcolm.parsons added inline comments.

Comment at: test/clang-tidy/misc-invalid-range.cpp:41
+  auto &v2 = v;
+  std::move(v.begin(), v2.end(), v2.begin());
+  // CHECK-MESSAGES: :[[@LINE-1]]:13: warning: call to algorithm with begin and end from different objects [misc-invalid-range]
They're the same object...


More information about the cfe-commits mailing list