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
b2087f09
Commit
b2087f09
authored
7 years ago
by
Jeroen Demeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention class name in error messages
parent
49806245
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+2
-2
tests/errors/cmethbasematch.pyx
tests/errors/cmethbasematch.pyx
+2
-2
No files found.
Cython/Compiler/Symtab.py
View file @
b2087f09
...
...
@@ -2091,7 +2091,7 @@ class CClassScope(ClassScope):
if
self
.
defined
and
not
in_pxd
:
error
(
pos
,
"Compatible but non-identical C method '%s' not redeclared "
"in definition part of extension type
"
%
name
)
"in definition part of extension type
'%s'"
%
(
name
,
self
.
class_name
)
)
error
(
entry
.
pos
,
"Previous declaration is here"
)
entry
=
self
.
add_cfunction
(
name
,
type
,
pos
,
cname
,
visibility
=
'ignore'
,
modifiers
=
modifiers
)
else
:
...
...
@@ -2101,7 +2101,7 @@ class CClassScope(ClassScope):
if
self
.
defined
:
error
(
pos
,
"C method '%s' not previously declared in definition part of"
" extension type
"
%
name
)
" extension type
'%s'"
%
(
name
,
self
.
class_name
)
)
entry
=
self
.
add_cfunction
(
name
,
type
,
pos
,
cname
,
visibility
,
modifiers
)
if
defining
:
entry
.
func_cname
=
self
.
mangle
(
Naming
.
func_prefix
,
name
)
...
...
This diff is collapsed.
Click to expand it.
tests/errors/cmethbasematch.pyx
View file @
b2087f09
...
...
@@ -32,8 +32,8 @@ cdef class UnneededRedeclaration(Base):
_ERRORS
=
u"""
8: 9: Signature not compatible with previous declaration
4: 9: Previous declaration is here
18:8: Compatible but non-identical C method 'f' not redeclared in definition part of extension type
18:8: Compatible but non-identical C method 'f' not redeclared in definition part of extension type
'MissingRedeclaration'
2:9: Previous declaration is here
23:8: Compatible but non-identical C method 'f' not redeclared in definition part of extension type
23:8: Compatible but non-identical C method 'f' not redeclared in definition part of extension type
'BadRedeclaration'
2:9: Previous declaration is here
"""
This diff is collapsed.
Click to expand it.
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