Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
5a8c9844
Commit
5a8c9844
authored
Oct 18, 2019
by
samaingw
Committed by
Stefan Behnel
Oct 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow docstrings in c++ classes (GH-3183)
parent
740ba90e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+4
-0
No files found.
Cython/Compiler/Parsing.py
View file @
5a8c9844
...
...
@@ -3782,6 +3782,10 @@ def p_cpp_class_definition(s, pos, ctx):
s
.
next
()
s
.
expect
(
'NEWLINE'
)
s
.
expect_indent
()
# Allow a cppclass to have docstrings. It will be discarded as comment.
# The goal of this is consistency: we can make docstrings inside cppclass methods,
# so why not on the cppclass itself ?
p_doc_string
(
s
)
attributes
=
[]
body_ctx
=
Ctx
(
visibility
=
ctx
.
visibility
,
level
=
'cpp_class'
,
nogil
=
nogil
or
ctx
.
nogil
)
body_ctx
.
templates
=
template_names
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment