Home
last modified time | relevance | path

Searched refs:CastResultType (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DCasting.h346 using CastResultType = std::unique_ptr<
349 static inline CastResultType doCast(std::unique_ptr<From> &&f) {
350 return CastResultType((typename CastResultType::element_type *)f.release());
353 static inline CastResultType castFailed() { return CastResultType(nullptr); }
355 static inline CastResultType doCastIfPossible(std::unique_ptr<From> &&f) {
772 LLVM_NODISCARD inline typename CastInfo<X, std::unique_ptr<Y>>::CastResultType
787 LLVM_NODISCARD inline typename CastInfo<X, std::unique_ptr<Y>>::CastResultType
/llvm-project-15.0.7/llvm/unittests/Support/
H A DCasting.cpp112 using CastResultType = T4; typedef
113 static inline CastResultType doCast(const T3 &t) { return T4(t); } in doCast()
114 static inline CastResultType castFailed() { return CastResultType(); } in castFailed()
115 static inline CastResultType doCastIfPossible(const T3 &f) { in doCastIfPossible()