Skip to content

Commit

Permalink
Merge pull request #14 from maximusron/overload-dev
Browse files Browse the repository at this point in the history
move isIntegralType to end of QualType OpaquePtr interface
  • Loading branch information
wlav authored Sep 5, 2023
2 parents 9c07abd + 04741ec commit c24e4b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 6 additions & 4 deletions cling/src/core/meta/inc/TInterpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -473,16 +473,18 @@ class TInterpreter : public TNamed {
virtual Bool_t IsIntegerType(const void * /* QualTypePtr */) const {return 0;}
virtual Bool_t IsSignedIntegerType(const void * /* QualTypePtr */) const {return 0;}
virtual Bool_t IsUnsignedIntegerType(const void * /* QualTypePtr */) const {return 0;}
virtual Bool_t IsIntegralType(const void * /* QualTypePtr */) const {return 0;}
virtual Bool_t IsFloatingType(const void * /* QualTypePtr */) const {return 0;}
virtual Bool_t IsPointerType(const void * /* QualTypePtr */) const {return 0;}
virtual Bool_t IsVoidPointerType(const void * /* QualTypePtr */) const {return 0;}
virtual TypeInfo_t *GetNonReferenceType(const void * /* QualTypePtr */) const {return 0;}
virtual TypeInfo_t *GetUnqualifiedType(const void * /* QualTypePtr */) const {return 0;}
virtual TypeInfo_t *GetPointerType(const void * /* QualTypePtr */) const {return 0;}

// FunctionDecl interface
virtual Bool_t FunctionDeclId_IsMethod(DeclId_t /* fdeclid */) const {return 0;}

// additional QualType Opaque Ptr interface
virtual Bool_t IsIntegralType(const void * /* QualTypePtr */) const {return 0;}
virtual TypeInfo_t *GetNonReferenceType(const void * /* QualTypePtr */) const {return 0;}
virtual TypeInfo_t *GetUnqualifiedType(const void * /* QualTypePtr */) const {return 0;}
virtual TypeInfo_t *GetPointerType(const void * /* QualTypePtr */) const {return 0;}
};

} // namespace CppyyLegacy
Expand Down
3 changes: 2 additions & 1 deletion cling/src/core/metacling/src/TCling.h
Original file line number Diff line number Diff line change
Expand Up @@ -591,14 +591,15 @@ class TCling final : public TInterpreter {
virtual bool IsIntegerType(const void * QualTypePtr) const;
virtual bool IsSignedIntegerType(const void * QualTypePtr) const;
virtual bool IsUnsignedIntegerType(const void * QualTypePtr) const;
virtual bool IsIntegralType(const void * QualTypePtr) const;
virtual bool IsFloatingType(const void * QualTypePtr) const;
virtual bool IsPointerType(const void * QualTypePtr) const;
virtual bool IsVoidPointerType(const void * QualTypePtr) const;

// FunctionDecl interface
bool FunctionDeclId_IsMethod(DeclId_t fdeclid) const;

// additional QualType Opaque Ptr interface
virtual bool IsIntegralType(const void * QualTypePtr) const;
virtual TypeInfo_t* GetNonReferenceType(const void * QualTypePtr) const;
virtual TypeInfo_t* GetUnqualifiedType(const void * QualTypePtr) const;
virtual TypeInfo_t* GetPointerType(const void * QualTypePtr) const;
Expand Down

0 comments on commit c24e4b9

Please sign in to comment.