[PATCH] D26041: [clang-tidy] Extend misc-use-after-move to support unique_ptr and shared_ptr.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 31 07:34:54 PDT 2016


alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.

LG modulo comments.



================
Comment at: clang-tidy/misc/UseAfterMoveCheck.cpp:498
+    auto addDeclRefs = [this, Block,
+                        DeclRefs](const SmallVectorImpl<BoundNodes> &Matches) {
+      for (const auto &Match : Matches) {
----------------
Use `ArrayRef` instead of `const SmallVectorImpl<> &`.


Repository:
  rL LLVM

https://reviews.llvm.org/D26041





More information about the cfe-commits mailing list