diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-22 15:40:27 +0300 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2021-01-22 15:40:27 +0300 |
commit | d5d072bc3a561b0d462aa27b9f85662da1a5bd93 (patch) | |
tree | b9ab3be4dd12e960cef118b2f516ed8f06144b15 /sphinx/domains | |
parent | 86c75cea13d87f1cbc7e9c30916bef0cf972eb5c (diff) | |
parent | aebfbbb532d2f887d3a372454be639f864c1690a (diff) |
Merge branch '3.4.x' into 3.x
Diffstat (limited to 'sphinx/domains')
-rw-r--r-- | sphinx/domains/c.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/domains/c.py b/sphinx/domains/c.py index 064318e08..5336b003c 100644 --- a/sphinx/domains/c.py +++ b/sphinx/domains/c.py @@ -137,8 +137,7 @@ class ASTIdentifier(ASTBaseBase): reftype='identifier', reftarget=targetText, modname=None, classname=None) - key = symbol.get_lookup_key() - pnode['c:parent_key'] = key + pnode['c:parent_key'] = symbol.get_lookup_key() if self.is_anon(): pnode += nodes.strong(text="[anonymous]") else: @@ -3204,7 +3203,8 @@ class CObject(ObjectDescription[ASTDeclaration]): def parse_pre_v3_type_definition(self, parser: DefinitionParser) -> ASTDeclaration: return parser.parse_pre_v3_type_definition() - def describe_signature(self, signode: TextElement, ast: Any, options: Dict) -> None: + def describe_signature(self, signode: TextElement, ast: ASTDeclaration, + options: Dict) -> None: ast.describe_signature(signode, 'lastIsName', self.env, options) def run(self) -> List[Node]: @@ -3642,7 +3642,7 @@ class CExprRole(SphinxRole): location=self.get_source_info()) # see below return [self.node_type(text, text, classes=classes)], [] - parentSymbol = self.env.temp_data.get('cpp:parent_symbol', None) + parentSymbol = self.env.temp_data.get('c:parent_symbol', None) if parentSymbol is None: parentSymbol = self.env.domaindata['c']['root_symbol'] # ...most if not all of these classes should really apply to the individual references, |