mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #4667 from SolidWallOfCode/cpp-unreferenced-symbol-fix
cpp domain: Fix assert when describing undefined symbol.
This commit is contained in:
commit
6e035ede7c
@ -6341,7 +6341,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