diff --git a/clingwrapper/src/clingwrapper.cxx b/clingwrapper/src/clingwrapper.cxx index ed86d729..2d3d4c77 100644 --- a/clingwrapper/src/clingwrapper.cxx +++ b/clingwrapper/src/clingwrapper.cxx @@ -553,6 +553,11 @@ Cppyy::TCppType_t Cppyy::GetReferencedType(TCppType_t type, bool rvalue) { return Cpp::GetReferencedType(type, rvalue); } +Cppyy::TCppType_t Cppyy::AddTypeQualifier(TCppType_t type, Cpp::QualKind qual) { + std::lock_guard Lock(InterOpMutex); + return Cpp::AddTypeQualifier(type, qual); +} + bool Cppyy::IsRValueReferenceType(TCppType_t type) { return Cpp::GetValueKind(type) == Cpp::ValueKind::RValue; } diff --git a/clingwrapper/src/cpp_cppyy.h b/clingwrapper/src/cpp_cppyy.h index 33c812c4..cddd6f50 100644 --- a/clingwrapper/src/cpp_cppyy.h +++ b/clingwrapper/src/cpp_cppyy.h @@ -76,6 +76,8 @@ namespace Cppyy { RPY_EXPORTED TCppType_t GetReferencedType(TCppType_t type, bool rvalue = false); RPY_EXPORTED + TCppType_t AddTypeQualifier(TCppType_t type, Cpp::QualKind qual); + RPY_EXPORTED std::string ResolveEnum(TCppScope_t enum_scope); RPY_EXPORTED bool IsLValueReferenceType(TCppType_t type);