diff options
Diffstat (limited to 'llvm/unittests/ADT/DepthFirstIteratorTest.cpp')
| -rw-r--r-- | llvm/unittests/ADT/DepthFirstIteratorTest.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/ADT/DepthFirstIteratorTest.cpp b/llvm/unittests/ADT/DepthFirstIteratorTest.cpp index 95923b8..00312ca 100644 --- a/llvm/unittests/ADT/DepthFirstIteratorTest.cpp +++ b/llvm/unittests/ADT/DepthFirstIteratorTest.cpp @@ -21,7 +21,7 @@ using namespace llvm;  namespace llvm {  template <typename T> struct CountedSet { -  typedef typename SmallPtrSet<T, 4>::iterator iterator; +  using iterator = typename SmallPtrSet<T, 4>::iterator;    SmallPtrSet<T, 4> S;    int InsertVisited = 0; @@ -44,8 +44,8 @@ public:  };  TEST(DepthFirstIteratorTest, ActuallyUpdateIterator) { -  typedef CountedSet<Graph<3>::NodeType *> StorageT; -  typedef df_iterator<Graph<3>, StorageT, true> DFIter; +  using StorageT = CountedSet<Graph<3>::NodeType *>; +  using DFIter = df_iterator<Graph<3>, StorageT, true>;    Graph<3> G;    G.AddEdge(0, 1); @@ -59,7 +59,7 @@ TEST(DepthFirstIteratorTest, ActuallyUpdateIterator) {  static_assert(      std::is_convertible_v<decltype(*std::declval<df_iterator<Graph<3>>>()), -                          typename df_iterator<Graph<3>>::reference>); +                          df_iterator<Graph<3>>::reference>);  // df_iterator should be (at-least) a forward-iterator  static_assert(std::is_base_of_v<std::forward_iterator_tag,  | 
