diff options
author | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-01-19 00:06:45 +0300 |
---|---|---|
committer | Jakob Lykke Andersen <Jakob@caput.dk> | 2021-01-19 19:45:28 +0300 |
commit | ab7562513b5fdd65d203f68a0712f5f96dc7b6fd (patch) | |
tree | 9fd9b3ec327e1633b2deb33c93ea3bb16341554d /sphinx/domains | |
parent | 2e660fbcb49508fd9f4686c52e834eb569748fad (diff) |
C++, also hyperlink operators in expr and alias
Diffstat (limited to 'sphinx/domains')
-rw-r--r-- | sphinx/domains/cpp.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index 4d6e189a3..25e6f1421 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -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) |