Skip to content

Commit

Permalink
Fix sphinx-doc#7276: cpp: objects generate hypertarget names unexpect…
Browse files Browse the repository at this point in the history
…edly
  • Loading branch information
tk0miya committed Mar 7, 2020
1 parent 372813a commit 5ea7a8f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions sphinx/domains/cpp.py
Expand Up @@ -6512,10 +6512,6 @@ def add_target_and_index(self, ast: ASTDeclaration, sig: str, signode: desc_sign
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)
Expand Down

0 comments on commit 5ea7a8f

Please sign in to comment.