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
b1e1fd0822
commit
6441853e66
@ -6239,7 +6239,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