Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
20 | 3 | 3 | 0.952 | member_specification |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 20 | 269 | InclusionConstraintGraph/Type.h |
2 | 20 | 351 | InclusionConstraintGraph/Type.h |
3 | 20 | 459 | InclusionConstraintGraph/Type.h |
| ||||
public: virtual bool MayBeAssigned(const Type &type) const { const EnumType *enum_type = dynamic_cast<const EnumType *>(&type); if (enum_type != NULL) { return m_qualifiers.MayBeAssigned(enum_type->m_qualifiers) && (m_descriptor == enum_type->m_descriptor); } else { return (dynamic_cast<const UnspecifiedType *>(&type) != NULL) || (dynamic_cast<const EllipsisType *>(&type) != NULL); } } virtual const std::wstring GetString() const { if (!m_qualifiers.HasQualifiers()) { return std::wstring(L"<E:") + m_descriptor + std::wstring(L">"); } else { return std::wstring(L"<E:") + m_descriptor + std::wstring(L"/") + m_qualifiers.GetString() + std::wstring(L">"); } } private: const Qualifiers m_qualifiers; const std::wstring m_descriptor; |
| ||||
public: virtual bool MayBeAssigned(const Type &type) const { const StructType *struct_type = dynamic_cast<const StructType *>(&type); if (struct_type != NULL) { return m_qualifiers.MayBeAssigned(struct_type->m_qualifiers) && (m_descriptor == struct_type->m_descriptor); } else { return (dynamic_cast<const UnspecifiedType *>(&type) != NULL) || (dynamic_cast<const EllipsisType *>(&type) != NULL); } } virtual const std::wstring GetString() const { if (!m_qualifiers.HasQualifiers()) { return std::wstring(L"<S:") + m_descriptor + std::wstring(L">"); } else { return std::wstring(L"<S:") + m_descriptor + std::wstring(L"/") + m_qualifiers.GetString() + std::wstring(L">"); } } private: const Qualifiers m_qualifiers; const std::wstring m_descriptor; |
| ||||
public: virtual bool MayBeAssigned(const Type &type) const { const UnionType *union_type = dynamic_cast<const UnionType *>(&type); if (union_type != NULL) { return m_qualifiers.MayBeAssigned(union_type->m_qualifiers) && (m_descriptor == union_type->m_descriptor); } else { return (dynamic_cast<const UnspecifiedType *>(&type) != NULL) || (dynamic_cast<const EllipsisType *>(&type) != NULL); } } virtual const std::wstring GetString() const { if (!m_qualifiers.HasQualifiers()) { return std::wstring(L"<U:") + m_descriptor + std::wstring(L">"); } else { return std::wstring(L"<U:") + m_descriptor + std::wstring(L"/") + m_qualifiers.GetString() + std::wstring(L">"); } } private: const Qualifiers m_qualifiers; const std::wstring m_descriptor; |
| |||
public: virtual bool MayBeAssigned(const Type &type) const { const [[#variable4f612c0]] *[[#variable4f61160]] = dynamic_cast<const [[#variable4f612c0]] *>(&type); if ([[#variable4f61160]] != NULL) { return m_qualifiers.MayBeAssigned([[#variable4f61160]]->m_qualifiers) && (m_descriptor == [[#variable4f61160]]->m_descriptor); } else { return (dynamic_cast<const UnspecifiedType *>(&type) != NULL) || (dynamic_cast<const EllipsisType *>(&type) != NULL); } } virtual const std::wstring GetString() const { if (!m_qualifiers.HasQualifiers()) { return std::wstring([[#variable4f61100]]) + m_descriptor + std::wstring(L">"); } else { return std::wstring([[#variable4f61100]]) + m_descriptor + std::wstring(L"/") + m_qualifiers.GetString() + std::wstring(L">"); } } private: const Qualifiers m_qualifiers; const std::wstring m_descriptor; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#4f612c0]] | UnionType |
1 | 2 | [[#4f612c0]] | StructType |
1 | 3 | [[#4f612c0]] | EnumType |
2 | 1 | [[#4f61160]] | union_type |
2 | 2 | [[#4f61160]] | struct_type |
2 | 3 | [[#4f61160]] | enum_type |
3 | 1 | [[#4f61100]] | L"<U:" |
3 | 2 | [[#4f61100]] | L"<S:" |
3 | 3 | [[#4f61100]] | L"<E:" |