Skip to content

Commit 24f356b

Browse files
cornawjakob
authored andcommitted
Remove class and struct tags
These do not bring anything significant for Python.
1 parent 4d7ebf6 commit 24f356b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pybind11_mkdoc/mkdoc_lib.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ def process_comment(comment):
126126
s = re.sub(r'[\\@]tparam%s?\s+%s' % (param_group, cpp_group),
127127
r'\n\n$Template parameter ``\2``:\n\n', s)
128128

129+
# Remove class and struct tags
130+
s = re.sub(r'[\\@](class|struct)\s+.*', '', s)
131+
129132
for in_, out_ in {
130133
'returns': 'Returns',
131134
'return': 'Returns',

0 commit comments

Comments
 (0)