[PATCH] D83717: [clang-tidy] Add check fo SEI CERT item ENV32-C

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


gamesh411 updated this revision to Diff 282529.
gamesh411 added a comment.

use llvm::move algorithm


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83717/new/

https://reviews.llvm.org/D83717

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: D83717.282529.patch
Type: text/x-patch
Size: 803 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200803/8bb05a09/attachment-0001.bin>


More information about the cfe-commits mailing list