forked from OSchip/llvm-project
[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
This commit is contained in:
parent
15eaefa5fe
commit
d9e5462da6
|
@ -199,7 +199,9 @@ private:
|
|||
};
|
||||
|
||||
class ForestNode::RecursiveIterator
|
||||
: public std::iterator<std::input_iterator_tag, const ForestNode> {
|
||||
: public llvm::iterator_facade_base<ForestNode::RecursiveIterator,
|
||||
std::input_iterator_tag,
|
||||
const ForestNode> {
|
||||
llvm::DenseSet<const ForestNode *> Seen;
|
||||
struct StackFrame {
|
||||
const ForestNode *Parent;
|
||||
|
|
Loading…
Reference in New Issue