From d9e5462da61c3e2137a21a868a36f7022a39b59e Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 9 Aug 2022 10:18:40 +0100 Subject: [PATCH] [clang-pseudo] Forest.h - don't inherit from std::iterator Now that we've updated to C++17 MSVC gives very verbose warnings about not creating classes that inherit from std::iterator - use llvm::iterator_facade_base instead Fixes #57005 --- clang-tools-extra/pseudo/include/clang-pseudo/Forest.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clang-tools-extra/pseudo/include/clang-pseudo/Forest.h b/clang-tools-extra/pseudo/include/clang-pseudo/Forest.h index ef9a222..130cf1a 100644 --- a/clang-tools-extra/pseudo/include/clang-pseudo/Forest.h +++ b/clang-tools-extra/pseudo/include/clang-pseudo/Forest.h @@ -199,7 +199,9 @@ private: }; class ForestNode::RecursiveIterator - : public std::iterator { + : public llvm::iterator_facade_base { llvm::DenseSet Seen; struct StackFrame { const ForestNode *Parent; -- 2.7.4