Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/CPyCppyyModule.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "PyStrings.h"
#include "TemplateProxy.h"
#include "TupleOfInstances.h"
#include "TypeHints.h"
#include "Utility.h"

#define CPYCPPYY_INTERNAL 1
Expand Down Expand Up @@ -1060,6 +1061,8 @@ static PyMethodDef gCPyCppyyMethods[] = {
METH_NOARGS, (char*) "Begin capturing stderr to a in memory buffer."},
{(char*) "_end_capture_stderr", (PyCFunction)EndCaptureStderr,
METH_NOARGS, (char*) "End capturing stderr and returns the captured buffer."},
{(char*) "generate_typehints", (PyCFunction)generate_typehints,
METH_VARARGS, (char*) "Generates typehits (.pyi file) for the given C/C++ type name."},
{nullptr, nullptr, 0, nullptr}
};

Expand Down
18 changes: 18 additions & 0 deletions src/Cppyy.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ namespace Cppyy {
CPPYY_IMPORT
TCppScope_t GetTypeScope(TCppScope_t klass);
CPPYY_IMPORT
std::string GetDoc(TCppScope_t scope);
CPPYY_IMPORT
TCppScope_t GetNamed(const std::string& scope_name,
TCppScope_t parent_scope = 0);
CPPYY_IMPORT
Expand Down Expand Up @@ -179,8 +181,16 @@ namespace Cppyy {
CPPYY_IMPORT
bool IsNamespace(TCppScope_t scope);
CPPYY_IMPORT
bool IsPureNamespace(TCppScope_t scope);
CPPYY_IMPORT
bool IsClass(TCppScope_t scope);
CPPYY_IMPORT
bool IsFunction(TCppScope_t handle);
CPPYY_IMPORT
bool IsMethod(TCppScope_t handle);
CPPYY_IMPORT
bool IsTemplateClass(TCppScope_t handle);
CPPYY_IMPORT
bool IsTemplate(TCppScope_t handle);
CPPYY_IMPORT
bool IsTemplateInstantiation(TCppScope_t handle);
Expand Down Expand Up @@ -262,10 +272,14 @@ namespace Cppyy {
CPPYY_IMPORT
std::string GetMethodReturnTypeAsString(TCppMethod_t);
CPPYY_IMPORT
TCppIndex_t GetTemplateNumArgs(TCppScope_t);;
CPPYY_IMPORT
TCppIndex_t GetMethodNumArgs(TCppMethod_t);
CPPYY_IMPORT
TCppIndex_t GetMethodReqArgs(TCppMethod_t);
CPPYY_IMPORT
std::string GetTemplateArgName(TCppMethod_t, TCppIndex_t iarg);
CPPYY_IMPORT
std::string GetMethodArgName(TCppMethod_t, TCppIndex_t iarg);
CPPYY_IMPORT
TCppType_t GetMethodArgType(TCppMethod_t, TCppIndex_t iarg);
Expand All @@ -292,6 +306,8 @@ namespace Cppyy {
CPPYY_IMPORT
bool ExistsMethodTemplate(TCppScope_t scope, const std::string& name);
CPPYY_IMPORT
bool IsPureTemplatedMethod(TCppMethod_t method);
CPPYY_IMPORT
bool IsTemplatedMethod(TCppMethod_t method);
CPPYY_IMPORT
bool IsStaticTemplate(TCppScope_t scope, const std::string& name);
Expand Down Expand Up @@ -331,6 +347,8 @@ namespace Cppyy {
CPPYY_IMPORT
TCppScope_t AdaptFunctionForLambdaReturn(TCppScope_t fn);
CPPYY_IMPORT
void GetMemberInNamespace(TCppScope_t ns, std::vector<TCppScope_t>& members);
CPPYY_IMPORT
TCppType_t GetDatamemberType(TCppScope_t var);
CPPYY_IMPORT
std::string GetTypeAsString(TCppType_t type);
Expand Down
Loading
Loading