C++, fix linking in function pointers.

Fixes sphinx-doc/sphinx#4041
This commit is contained in:
Jakob Lykke Andersen 2017-09-07 13:20:31 +02:00
parent 6ae9fd92ac
commit c0f84295b6
2 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@ Bugs fixed
* #3877: Fix for C++ multiline signatures.
* #4006: Fix crash on parallel build
* #3969: private instance attributes causes AttributeError
* #4041: C++, remove extra name linking in function pointers.
Testing
--------

View File

@ -2408,6 +2408,10 @@ class ASTType(ASTBase):
if (self.decl.require_space_after_declSpecs() and
len(text_type(self.declSpecs)) > 0):
signode += nodes.Text(' ')
# for paramters that don't really declare new names we get 'markType',
# this should not be propagated, but be 'noneIsName'.
if mode == 'markType':
mode = 'noneIsName'
self.decl.describe_signature(signode, mode, env, symbol)