From a9cf994a75c2c0e1da55a82dd9abd594eeb60e22 Mon Sep 17 00:00:00 2001 From: Vipul Cariappa Date: Wed, 5 Nov 2025 09:38:12 +0100 Subject: [PATCH] add `IsLValueReferenceType` & `IsRValueReferenceType` --- clingwrapper/src/clingwrapper.cxx | 8 ++++++++ clingwrapper/src/cpp_cppyy.h | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/clingwrapper/src/clingwrapper.cxx b/clingwrapper/src/clingwrapper.cxx index 6df99240..c85383a6 100644 --- a/clingwrapper/src/clingwrapper.cxx +++ b/clingwrapper/src/clingwrapper.cxx @@ -532,6 +532,14 @@ Cppyy::TCppType_t Cppyy::GetReferencedType(TCppType_t type, bool rvalue) { return Cpp::GetReferencedType(type, rvalue); } +bool Cppyy::IsRValueReferenceType(TCppType_t type) { + return Cpp::IsRValueReferenceType(type); +} + +bool Cppyy::IsLValueReferenceType(TCppType_t type) { + return Cpp::IsLValueReferenceType(type); +} + bool Cppyy::IsClassType(TCppType_t type) { return Cpp::IsRecordType(type); } diff --git a/clingwrapper/src/cpp_cppyy.h b/clingwrapper/src/cpp_cppyy.h index 80acf04f..aab3b9fb 100644 --- a/clingwrapper/src/cpp_cppyy.h +++ b/clingwrapper/src/cpp_cppyy.h @@ -90,6 +90,10 @@ namespace Cppyy { RPY_EXPORTED std::string ResolveEnum(TCppScope_t enum_scope); RPY_EXPORTED + bool IsLValueReferenceType(TCppType_t type); + RPY_EXPORTED + bool IsRValueReferenceType(TCppType_t type); + RPY_EXPORTED bool IsClassType(TCppType_t type); RPY_EXPORTED bool IsPointerType(TCppType_t type);