Skip to content

Commit

Permalink
- fix: Typedef and using alias is not correctly handled in expression…
Browse files Browse the repository at this point in the history
… evaluation.
  • Loading branch information
royqh1979 committed May 31, 2023
1 parent 72189f0 commit e2f25d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
- 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.
- fix: Typedef and using alias is not correctly handled in expression evaluation.

Red Panda C++ Version 2.21

Expand Down
2 changes: 1 addition & 1 deletion RedPandaIDE/parser/cppparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4808,7 +4808,7 @@ PEvalStatement CppParser::doEvalTerm(const QString &fileName,
case StatementKind::skAlias: {
statement = doFindAliasedStatement(statement);
if (statement)
result = doCreateEvalNamespace(statement);
result = doCreateEvalType(fileName,statement);
}
break;
case StatementKind::skVariable:
Expand Down

0 comments on commit e2f25d0

Please sign in to comment.