From ac2ab85302c53be48cb9644eee8737296af054c4 Mon Sep 17 00:00:00 2001 From: "Alan M. Carroll" Date: Thu, 22 Feb 2018 08:30:46 -0600 Subject: [PATCH] cpp domain: Fix assert when describing unreferenced symbol. --- sphinx/domains/cpp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/domains/cpp.py b/sphinx/domains/cpp.py index 1d52962e9..554c9bdb0 100644 --- a/sphinx/domains/cpp.py +++ b/sphinx/domains/cpp.py @@ -6205,7 +6205,7 @@ class CPPDomain(Domain): if target is None: return None parentKey = node.get("cpp:parent_key", None) - if parentKey is None: + if parentKey is None or len(parentKey) <= 0: return None rootSymbol = self.data['root_symbol']