Merge pull request #7277 from tk0miya/7276_cpp_hyperlink_names

Fix #7276: cpp: objects generate hypertarget names unexpectedly
This commit is contained in:
Takeshi KOMIYA
2020-03-15 14:13:04 +09:00
committed by GitHub
2 changed files with 2 additions and 4 deletions

View File

@@ -28,6 +28,8 @@ Incompatible changes
* #6903: Internal data structure of C, Python, reST and standard domains have
changed. The node_id is added to the index of objects and modules. Now they
contains a pair of docname and node_id for cross reference.
* #7276: C++ domain: Non intended behavior is removed such as ``say_hello_``
links to ``.. cpp:function:: say_hello()``
* #7210: js domain: Non intended behavior is removed such as ``parseInt_`` links
to ``.. js:function:: parseInt``
* #7229: rst domain: Non intended behavior is removed such as ``numref_`` links

View File

@@ -6512,10 +6512,6 @@ class CPPObject(ObjectDescription):
names = self.env.domaindata['cpp']['names']
if name not in names:
names[name] = ast.symbol.docname
signode['names'].append(name)
else:
# print("[CPP] non-unique name:", name)
pass
# always add the newest id
assert newestId
signode['ids'].append(newestId)