| 201 | |
| 202 | template<typename QT, typename SUB_T> |
| 203 | static bool TypeContainsSubType(const QualType& t) |
| 204 | { |
| 205 | if(const auto* lref = dyn_cast_or_null<QT>(t.getTypePtrOrNull())) { |
| 206 | const auto subType = GetDesugarType(lref->getPointeeType()); |
| 207 | const auto& ct = subType.getCanonicalType(); |
| 208 | const auto* plainSubType = ct.getTypePtrOrNull(); |
| 209 | |
| 210 | return isa<SUB_T>(plainSubType); |
| 211 | } |
| 212 | |
| 213 | return false; |
| 214 | } |
| 215 | //----------------------------------------------------------------------------- |
| 216 | |
| 217 | template<typename T, typename TFunc> |
nothing calls this directly
no test coverage detected