[PATCH] D85112: use llvm::move algorithm

Endre Fülöp via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 3 01:50:39 PDT 2020


gamesh411 created this revision.
Herald added subscribers: cfe-commits, martong, Szelethus, dkrupp.
Herald added a project: clang.
gamesh411 requested review of this revision.

Depends on D83717 <https://reviews.llvm.org/D83717>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85112

Files:
  clang-tools-extra/clang-tidy/cert/ExitHandlerCheck.cpp


Index: clang-tools-extra/clang-tidy/cert/ExitHandlerCheck.cpp
===================================================================
--- clang-tools-extra/clang-tidy/cert/ExitHandlerCheck.cpp
+++ clang-tools-extra/clang-tidy/cert/ExitHandlerCheck.cpp
@@ -12,7 +12,6 @@
 #include "clang/ASTMatchers/ASTMatchFinder.h"
 #include "llvm/ADT/DenseSet.h"
 #include "llvm/ADT/SmallVector.h"
-#include <algorithm>
 #include <deque>
 #include <iterator>
 
@@ -141,8 +140,7 @@
     // Collect all the referenced FunctionDecls.
     Collector.TraverseStmt(CurrentDefWithBody->getBody());
     // Move the called functions to the worklist.
-    std::move(Collector.begin(), Collector.end(),
-              std::back_inserter(CalledFunctions));
+    llvm::move(Collector, std::back_inserter(CalledFunctions));
   }
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85112.282528.patch
Type: text/x-patch
Size: 803 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200803/a589f2f7/attachment.bin>


More information about the cfe-commits mailing list