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)); } }
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