mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-26 07:00:14 -05:00
Fix #7276: cpp: objects generate hypertarget names unexpectedly
This commit is contained in:
1 parent
2b6f06b622
commit
22084ada1f
2 files changed
+2
-4
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user