Skip to content

Commit af817fe

Browse files
committed
Expose GetReferencedType and GetPointerType
1 parent 1994d72 commit af817fe

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

clingwrapper/src/clingwrapper.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,14 @@ Cppyy::TCppType_t Cppyy::GetRealType(TCppType_t type) {
500500
return Cpp::GetUnderlyingType(type);
501501
}
502502

503+
Cppyy::TCppType_t Cppyy::GetPointerType(TCppType_t type) {
504+
return Cpp::GetPointerType(type);
505+
}
506+
507+
Cppyy::TCppType_t Cppyy::GetReferencedType(TCppType_t type, bool rvalue) {
508+
return Cpp::GetReferencedType(type, rvalue);
509+
}
510+
503511
bool Cppyy::IsClassType(TCppType_t type) {
504512
return Cpp::IsRecordType(type);
505513
}

clingwrapper/src/cpp_cppyy.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ namespace Cppyy {
8484
RPY_EXPORTED
8585
TCppType_t GetRealType(TCppType_t type);
8686
RPY_EXPORTED
87+
TCppType_t GetPointerType(TCppType_t type);
88+
RPY_EXPORTED
89+
TCppType_t GetReferencedType(TCppType_t type, bool rvalue = false);
90+
RPY_EXPORTED
8791
std::string ResolveEnum(TCppScope_t enum_scope);
8892
RPY_EXPORTED
8993
bool IsClassType(TCppType_t type);

0 commit comments

Comments
 (0)