mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
cpp domain: Fix assert when describing unreferenced symbol.
This commit is contained in:
parent
16a7539007
commit
ac2ab85302
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user