mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
C++, also hyperlink operators in expr and alias
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -34,6 +34,7 @@ Features added
|
||||
* #207: Now :confval:`highlight_language` supports multiple languages
|
||||
* #2030: :rst:dir:`code-block` and :rst:dir:`literalinclude` supports automatic
|
||||
dedent via no-argument ``:dedent:`` option
|
||||
* C++, also hyperlink operator overloads in expressions and alias declarations.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
@@ -1592,6 +1592,15 @@ class ASTOperator(ASTBase):
|
||||
identifier = str(self)
|
||||
if mode == 'lastIsName':
|
||||
signode += addnodes.desc_name(identifier, identifier)
|
||||
elif mode == 'markType':
|
||||
targetText = prefix + identifier + templateArgs
|
||||
pnode = addnodes.pending_xref('', refdomain='cpp',
|
||||
reftype='identifier',
|
||||
reftarget=targetText, modname=None,
|
||||
classname=None)
|
||||
pnode['cpp:parent_key'] = symbol.get_lookup_key()
|
||||
pnode += nodes.Text(identifier)
|
||||
signode += pnode
|
||||
else:
|
||||
signode += addnodes.desc_addname(identifier, identifier)
|
||||
|
||||
|
Reference in New Issue
Block a user