- fix: Typedef and using alias is not correctly handled in expression evaluation.

This commit is contained in:
Roy Qu 2023-05-31 20:06:52 +08:00
parent 72189f0a94
commit e2f25d063f
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ Red Panda C++ Version 2.22
- fix: vertice shader(.vs) and fragment shader(.fs) files can't be openned by double click in the project browser. - fix: vertice shader(.vs) and fragment shader(.fs) files can't be openned by double click in the project browser.
- enhancement: Add various menu items for cursor actions using Home/End/Page Up/Page Down keys. - enhancement: Add various menu items for cursor actions using Home/End/Page Up/Page Down keys.
- enhancement: Filter names in the shortcut config page of options dialog. - enhancement: Filter names in the shortcut config page of options dialog.
- fix: Typedef and using alias is not correctly handled in expression evaluation.
Red Panda C++ Version 2.21 Red Panda C++ Version 2.21

View File

@ -4808,7 +4808,7 @@ PEvalStatement CppParser::doEvalTerm(const QString &fileName,
case StatementKind::skAlias: { case StatementKind::skAlias: {
statement = doFindAliasedStatement(statement); statement = doFindAliasedStatement(statement);
if (statement) if (statement)
result = doCreateEvalNamespace(statement); result = doCreateEvalType(fileName,statement);
} }
break; break;
case StatementKind::skVariable: case StatementKind::skVariable: