Skip to content

Commit ad880c4

Browse files
aaronj0vgvassilev
authored andcommitted
Add canonical type interface for method args
1 parent 62117ff commit ad880c4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

clingwrapper/src/clingwrapper.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,6 +1395,14 @@ std::string Cppyy::GetMethodArgTypeAsString(TCppMethod_t method, TCppIndex_t iar
13951395
Cpp::GetFunctionArgType(method, iarg));
13961396
}
13971397

1398+
std::string Cppyy::GetMethodArgCanonTypeAsString(TCppMethod_t method, TCppIndex_t iarg)
1399+
{
1400+
return
1401+
Cpp::GetTypeAsString(
1402+
Cpp::GetCanonicalType(
1403+
Cpp::GetFunctionArgType(method, iarg)));
1404+
}
1405+
13981406
std::string Cppyy::GetMethodArgDefault(TCppMethod_t method, TCppIndex_t iarg)
13991407
{
14001408
if (!method)

clingwrapper/src/cpp_cppyy.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,8 @@ namespace Cppyy {
284284
RPY_EXPORTED
285285
std::string GetMethodArgTypeAsString(TCppMethod_t method, TCppIndex_t iarg);
286286
RPY_EXPORTED
287+
std::string GetMethodArgCanonTypeAsString(TCppMethod_t method, TCppIndex_t iarg);
288+
RPY_EXPORTED
287289
std::string GetMethodArgDefault(TCppMethod_t, TCppIndex_t iarg);
288290
RPY_EXPORTED
289291
std::string GetMethodSignature(TCppMethod_t, bool show_formal_args, TCppIndex_t max_args = (TCppIndex_t)-1);

0 commit comments

Comments
 (0)