Fix #7276: cpp: objects generate hypertarget names unexpectedly

This commit is contained in:
Takeshi KOMIYA committed 2020-03-09 00:54:59 +09:00
1 parent 2b6f06b622
commit 22084ada1f
2 files changed
+2 -4

No files matched your search

+2
View File
@@ -26,6 +26,8 @@ Incompatible changes
* #6903: Internal data structure of 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
-4
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)