fix: crash when load c/c++ files
This commit is contained in:
parent
7593f99c58
commit
22b8ee814e
|
@ -676,6 +676,8 @@ PStatement CppParser::doFindAliasedStatement(const PStatement &statement, QSet<S
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!result)
|
||||||
|
return PStatement();
|
||||||
if (foundSet.contains(result.get()))
|
if (foundSet.contains(result.get()))
|
||||||
return PStatement();
|
return PStatement();
|
||||||
if (result->kind == StatementKind::skAlias)
|
if (result->kind == StatementKind::skAlias)
|
||||||
|
|
Loading…
Reference in New Issue