From 6fd299d8db1dee2b8225f8f4ec6770b11ab2e518 Mon Sep 17 00:00:00 2001 From: Jakob Lykke Andersen Date: Tue, 30 Mar 2021 16:18:00 +0200 Subject: [PATCH] C, C++, fix unary op --- sphinx/domains/c.py | 2 +- sphinx/domains/cpp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sphinx/domains/c.py b/sphinx/domains/c.py index d3aad012ba8..1eeaf65cf01 100644 --- a/sphinx/domains/c.py +++ b/sphinx/domains/c.py @@ -446,7 +446,7 @@ def describe_signature(self, signode: TextElement, mode: str, signode += addnodes.desc_sig_space() else: signode += addnodes.desc_sig_operator(self.op, self.op) - self.expr.describe_signature(signode, mode, env, symbol) + self.expr.describe_signature(signode, mode, env, symbol) class ASTSizeofType(ASTExpression): diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index 1c876081bd7..4a36f6131a7 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -1251,7 +1251,7 @@ def describe_signature(self, signode: TextElement, mode: str, signode += addnodes.desc_sig_space() else: signode += addnodes.desc_sig_operator(self.op, self.op) - self.expr.describe_signature(signode, mode, env, symbol) + self.expr.describe_signature(signode, mode, env, symbol) class ASTSizeofParamPack(ASTExpression):