mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #7277 from tk0miya/7276_cpp_hyperlink_names
Fix #7276: cpp: objects generate hypertarget names unexpectedly
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -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
|
||||
|
||||
@@ -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