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
61127a9f
Commit
61127a9f
authored
Jun 12, 2019
by
gsamain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(broken commit) clearer names for method reification in symtab
parent
b691f306
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+11
-9
No files found.
Cython/Compiler/Symtab.py
View file @
61127a9f
...
...
@@ -2509,7 +2509,7 @@ class CppClassScope(Scope):
self
.
directives
=
outer_scope
.
directives
self
.
inherited_var_entries
=
[]
self
.
inherited_type_entries
=
[]
self
.
reif
ied_method
s
=
[]
self
.
reif
ying_entrie
s
=
[]
if
templates
is
not
None
:
for
T
in
templates
:
template_entry
=
self
.
declare
(
...
...
@@ -2563,16 +2563,18 @@ class CppClassScope(Scope):
wrapper_entry
.
func_cname
=
"%s::%s"
%
(
class_type
.
empty_declaration_code
(),
wrapper_cname
)
return
wrapper_entry
def
reify_method
(
self
,
name
,
type
,
pos
,
defining
=
0
,
has_varargs
=
0
,
optional_arg_count
=
0
,
op_arg_struct
=
None
):
def
reify_method
(
self
,
entry
):
# TODO: clean argument list
reified_name
=
"reified_"
+
name
reified_name
=
"reified_"
+
entry
.
name
reified_cname
=
Naming
.
builtin_prefix
+
reified_name
scope
=
CppClassScope
(
reified_name
,
self
)
reify_base_class
=
[]
reified_entry
=
self
.
declare_cpp_class
(
reified_name
,
scope
,
pos
,
cname
=
reified_cname
,
base_classes
=
(),
cypclass
=
True
,
lock_mode
=
"nolock"
)
self
.
reified_methods
.
append
(
reified_entry
)
reified_type
=
PyrexTypes
.
CypClassType
(
reified_name
,
scope
,
reified_cname
,
None
,
templates
=
None
,
lock_mode
=
"nolock"
)
reified_type
.
namespace
=
self
.
type
#reify_base_classes = ()
reifying_entry
=
self
.
declare
(
reified_name
,
reified_cname
,
reified_type
,
entry
.
pos
,
'extern'
)
# FIXME: visibility
#reified_entry.is_cpp_class = 1
reifying_entry
.
reified_entry
=
entry
self
.
reifying_entries
.
append
(
reifying_entry
)
def
declare_cfunction
(
self
,
name
,
type
,
pos
,
cname
=
None
,
visibility
=
'extern'
,
api
=
0
,
in_pxd
=
0
,
...
...
@@ -2677,7 +2679,7 @@ class CppClassScope(Scope):
defining
=
defining
,
cname
=
cname
,
visibility
=
visibility
)
if
reify
:
self
.
reify_method
(
name
,
type
,
pos
)
self
.
reify_method
(
entry
)
#if prev_entry and not defining:
# entry.overloaded_alternatives = prev_entry.all_alternatives()
entry
.
utility_code
=
utility_code
...
...
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