Skip to content

Commit d3a4c6d

Browse files
extract comments
1 parent 0713863 commit d3a4c6d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Cppyy.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ namespace Cppyy {
9090
CPPYY_IMPORT
9191
TCppScope_t GetTypeScope(TCppScope_t klass);
9292
CPPYY_IMPORT
93+
std::string GetDoc(TCppScope_t scope);
94+
CPPYY_IMPORT
9395
TCppScope_t GetNamed(const std::string& scope_name,
9496
TCppScope_t parent_scope = 0);
9597
CPPYY_IMPORT

src/TypeHints.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ void handle_variable(Cppyy::TCppScope_t var, std::ostringstream &file, int inden
105105
std::string indentation_str = indentation(indent);
106106

107107
file << indentation_str
108+
<< Cppyy::GetDoc(var) << "\n" << indentation_str
108109
<< Cppyy::GetFinalName(var)
109110
<< ": "
110111
<< pythonize_type_name(Cppyy::GetTypeAsString(Cppyy::GetDatamemberType(var)))

0 commit comments

Comments
 (0)