From e2f25d063fc5f59dfb1c924faae41d9ad274dd20 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 31 May 2023 20:06:52 +0800 Subject: [PATCH] - fix: Typedef and using alias is not correctly handled in expression evaluation. --- NEWS.md | 1 + RedPandaIDE/parser/cppparser.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 842dc987..9b972a3e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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 diff --git a/RedPandaIDE/parser/cppparser.cpp b/RedPandaIDE/parser/cppparser.cpp index 2cdde67d..2c6fbec0 100644 --- a/RedPandaIDE/parser/cppparser.cpp +++ b/RedPandaIDE/parser/cppparser.cpp @@ -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: