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)); } }
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)); } }
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits