Merge pull request #4667 from SolidWallOfCode/cpp-unreferenced-symbol-fix

cpp domain: Fix assert when describing undefined symbol.
This commit is contained in:
Jakob Lykke Andersen 2018-06-09 19:57:21 +02:00 committed by GitHub
commit 6e035ede7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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']