CloneSet3


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
20330.952member_specification
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
120269
InclusionConstraintGraph/Type.h
220351
InclusionConstraintGraph/Type.h
320459
InclusionConstraintGraph/Type.h
Clone Instance
1
Line Count
20
Source Line
269
Source File
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;


Clone Instance
2
Line Count
20
Source Line
351
Source File
InclusionConstraintGraph/Type.h

          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;


Clone Instance
3
Line Count
20
Source Line
459
Source File
InclusionConstraintGraph/Type.h

          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;


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4f612c0]]
UnionType 
12[[#4f612c0]]
StructType 
13[[#4f612c0]]
EnumType 
21[[#4f61160]]
union_type 
22[[#4f61160]]
struct_type 
23[[#4f61160]]
enum_type 
31[[#4f61100]]
L"<U:" 
32[[#4f61100]]
L"<S:" 
33[[#4f61100]]
L"<E:"