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

Function isUsefulType

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

Source from the content-addressed store, hash-verified

99}
100
101bool isUsefulType(AbstractType::Ptr type)
102{
103 type = resolveAliasType(type);
104 if (!type) {
105 return false;
106 }
107 if (type->whichType() != AbstractType::TypeIntegral) {
108 return true;
109 }
110 auto dtype = type.staticCast<IntegralType>()->dataType();
111 if (dtype != IntegralType::TypeMixed && dtype != IntegralType::TypeNull) {
112 return true;
113 }
114 return false;
115}
116} // namespace TypeUtils

Callers 1

mergeTypesFunction · 0.85

Calls 3

resolveAliasTypeFunction · 0.85
dataTypeMethod · 0.80
whichTypeMethod · 0.45

Tested by

no test coverage detected