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

Method equals

kdevplatform/language/duchain/types/arraytype.cpp:30–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool ArrayType::equals(const AbstractType* _rhs) const
31{
32 if (!AbstractType::equals(_rhs))
33 return false;
34
35 Q_ASSERT(dynamic_cast<const ArrayType*>(_rhs));
36 const auto* rhs = static_cast<const ArrayType*>(_rhs);
37
38 TYPE_D(ArrayType);
39 if (d->m_dimension != rhs->d_func()->m_dimension)
40 return false;
41
42 return d->m_elementType == rhs->d_func()->m_elementType;
43}
44
45ArrayType::ArrayType()
46 : AbstractType(createData<ArrayType>())

Callers 4

exchangeMethod · 0.45
testTypePtrMethod · 0.45
testReferenceTypeMethod · 0.45
htmlIdentifiedTypeMethod · 0.45

Calls 1

d_funcMethod · 0.80

Tested by 2

testTypePtrMethod · 0.36
testReferenceTypeMethod · 0.36