Lines Matching refs:T3
87 struct T3 { struct
88 T3(const T1 *x) : hasValue(x != nullptr) {} in T3() argument
95 template <> struct CastInfo<T3, T1 *> : public ValueFromPointerCast<T3, T1> {};
99 T4(const T3 &x) : hasValue(true) {} in T4()
101 static bool classof(const T3 *x) { return true; } in classof()
105 template <> struct ValueIsPresent<T3> {
106 using UnwrappedType = T3;
107 static inline bool isPresent(const T3 &t) { return t.hasValue; } in isPresent()
108 static inline const T3 &unwrapValue(const T3 &t) { return t; } in unwrapValue()
111 template <> struct CastInfo<T4, T3> {
113 static inline CastResultType doCast(const T3 &t) { return T4(t); } in doCast()
115 static inline CastResultType doCastIfPossible(const T3 &f) { in doCastIfPossible()
244 T3 t3 = dyn_cast<T3>(&t1); in TEST()
260 T3 t3 = dyn_cast_if_present<T3>(t1Null); in TEST()