MCPcopy Create free account
hub / github.com/KDE/kdevelop / resolveAliasType

Function resolveAliasType

kdevplatform/language/duchain/types/typeutils.cpp:93–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93AbstractType::Ptr resolveAliasType(const AbstractType::Ptr& eventualAlias)
94{
95 if (eventualAlias && eventualAlias->whichType() == KDevelop::AbstractType::TypeAlias) {
96 return eventualAlias.staticCast<TypeAliasType>()->type();
97 }
98 return eventualAlias;
99}
100
101bool isUsefulType(AbstractType::Ptr type)
102{

Callers 1

isUsefulTypeFunction · 0.85

Calls 2

whichTypeMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected