cpp domain: Fix assert when describing unreferenced symbol.

This commit is contained in:
Alan M. Carroll 2018-02-22 08:30:46 -06:00
parent 16a7539007
commit ac2ab85302

View File

@ -6205,7 +6205,7 @@ class CPPDomain(Domain):
if target is None: if target is None:
return None return None
parentKey = node.get("cpp:parent_key", None) parentKey = node.get("cpp:parent_key", None)
if parentKey is None: if parentKey is None or len(parentKey) <= 0:
return None return None
rootSymbol = self.data['root_symbol'] rootSymbol = self.data['root_symbol']