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
Gwenaël Samain
cython
Commits
c1be0eac
Commit
c1be0eac
authored
Apr 24, 2019
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Symtab for CppClassScope nested types
parent
9619c639
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+4
-2
No files found.
Cython/Compiler/Symtab.py
View file @
c1be0eac
...
@@ -2403,6 +2403,7 @@ class CppClassScope(Scope):
...
@@ -2403,6 +2403,7 @@ class CppClassScope(Scope):
Scope
.
__init__
(
self
,
name
,
outer_scope
,
None
)
Scope
.
__init__
(
self
,
name
,
outer_scope
,
None
)
self
.
directives
=
outer_scope
.
directives
self
.
directives
=
outer_scope
.
directives
self
.
inherited_var_entries
=
[]
self
.
inherited_var_entries
=
[]
self
.
inherited_type_entries
=
[]
if
templates
is
not
None
:
if
templates
is
not
None
:
for
T
in
templates
:
for
T
in
templates
:
template_entry
=
self
.
declare
(
template_entry
=
self
.
declare
(
...
@@ -2511,12 +2512,13 @@ class CppClassScope(Scope):
...
@@ -2511,12 +2512,13 @@ class CppClassScope(Scope):
modifiers
=
base_entry
.
func_modifiers
,
modifiers
=
base_entry
.
func_modifiers
,
utility_code
=
base_entry
.
utility_code
)
utility_code
=
base_entry
.
utility_code
)
entry
.
is_inherited
=
1
entry
.
is_inherited
=
1
for
base_entry
in
base_scope
.
type_entries
:
for
base_entry
in
base_scope
.
type_entries
+
base_scope
.
inherited_type_entries
:
if
base_entry
.
name
not
in
base_templates
:
if
base_entry
.
name
not
in
base_templates
:
entry
=
self
.
declare_type
(
base_entry
.
name
,
base_entry
.
type
,
entry
=
self
.
declare_type
(
base_entry
.
name
,
base_entry
.
type
,
base_entry
.
pos
,
base_entry
.
cname
,
base_entry
.
pos
,
base_entry
.
cname
,
base_entry
.
visibility
)
base_entry
.
visibility
,
defining
=
0
)
entry
.
is_inherited
=
1
entry
.
is_inherited
=
1
self
.
inherited_type_entries
.
append
(
entry
)
def
specialize
(
self
,
values
,
type_entry
):
def
specialize
(
self
,
values
,
type_entry
):
scope
=
CppClassScope
(
self
.
name
,
self
.
outer_scope
)
scope
=
CppClassScope
(
self
.
name
,
self
.
outer_scope
)
...
...
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