fix: crash when load c/c++ files

This commit is contained in:
Roy Qu 2024-03-20 10:17:10 +08:00
parent 7593f99c58
commit 22b8ee814e
1 changed files with 2 additions and 0 deletions

View File

@ -676,6 +676,8 @@ PStatement CppParser::doFindAliasedStatement(const PStatement &statement, QSet<S
break;
}
}
if (!result)
return PStatement();
if (foundSet.contains(result.get()))
return PStatement();
if (result->kind == StatementKind::skAlias)