diff options
Diffstat (limited to 'llvm/unittests/ADT/TinyPtrVectorTest.cpp')
| -rw-r--r-- | llvm/unittests/ADT/TinyPtrVectorTest.cpp | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/unittests/ADT/TinyPtrVectorTest.cpp b/llvm/unittests/ADT/TinyPtrVectorTest.cpp index af4ae4f..c77721d 100644 --- a/llvm/unittests/ADT/TinyPtrVectorTest.cpp +++ b/llvm/unittests/ADT/TinyPtrVectorTest.cpp @@ -28,14 +28,14 @@ template <typename PointerTy, unsigned IntBits, typename IntType,            typename PtrTraits, typename Info>  struct RemovePointer<      PointerIntPair<PointerTy, IntBits, IntType, PtrTraits, Info>> { -  typedef typename RemovePointer<PointerTy>::type type; +  using type = typename RemovePointer<PointerTy>::type;  };  template <typename VectorT>  class TinyPtrVectorTest : public testing::Test {  protected: -  typedef typename VectorT::value_type PtrT; -  typedef typename RemovePointer<PtrT>::type ValueT; +  using PtrT = typename VectorT::value_type; +  using ValueT = typename RemovePointer<PtrT>::type;    using PtrTraits = PointerLikeTypeTraits<PtrT>;    VectorT V; @@ -78,9 +78,9 @@ protected:    }  }; -typedef ::testing::Types<TinyPtrVector<int *>, TinyPtrVector<double *>, -                         TinyPtrVector<PointerIntPair<int *, 1>>> -    TinyPtrVectorTestTypes; +using TinyPtrVectorTestTypes = +    ::testing::Types<TinyPtrVector<int *>, TinyPtrVector<double *>, +                     TinyPtrVector<PointerIntPair<int *, 1>>>;  TYPED_TEST_SUITE(TinyPtrVectorTest, TinyPtrVectorTestTypes, );  TYPED_TEST(TinyPtrVectorTest, EmptyTest) {  | 
