fix: Don't expose functions who's parent can't be found in the global scope.
This commit is contained in:
parent
4fc3900796
commit
6081054f89
|
@ -2611,6 +2611,10 @@ void CppParser::handleMethod(StatementKind functionKind,const QString &sType, co
|
|||
if (splitLastMember(sName,scopelessName,parentClassName)) {
|
||||
// Provide Bar instead of Foo::Bar
|
||||
scopeStatement = getIncompleteClass(parentClassName,getCurrentScope());
|
||||
|
||||
//parent not found
|
||||
if (!parentClassName.isEmpty() && !scopeStatement)
|
||||
scopelessName=sName;
|
||||
} else
|
||||
scopelessName = sName;
|
||||
|
||||
|
|
Loading…
Reference in New Issue