MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / HasTypePath

Function HasTypePath

InsightsHelpers.cpp:1286–1295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1284
1285template<typename QT, typename SUB_T>
1286static bool HasTypePath(const QualType& t)
1287{
1288 if(const auto* lref = dyn_cast_or_null<QT>(t.getTypePtrOrNull())) {
1289 const auto subType = GetDesugarType(lref->getPointeeType());
1290
1291 return isa<SUB_T>(subType);
1292 }
1293
1294 return false;
1295}
1296//-----------------------------------------------------------------------------
1297
1298std::string GetTypeNameAsParameter(const QualType& t, std::string_view varName, const Unqualified unqualified)

Callers

nothing calls this directly

Calls 1

GetDesugarTypeFunction · 0.85

Tested by

no test coverage detected