From b4cfc7b98d62edf862ac9d512f34b2a369a29222 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Mon, 19 Feb 2024 17:56:15 +0800 Subject: [PATCH] fix: Can't correctly suggest a variable defined by a typedef-ed type. --- RedPandaIDE/RedPandaIDE.pro | 2 +- RedPandaIDE/parser/cppparser.cpp | 2 +- Red_Panda_CPP.pro | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RedPandaIDE/RedPandaIDE.pro b/RedPandaIDE/RedPandaIDE.pro index 10c2b038..7867df35 100644 --- a/RedPandaIDE/RedPandaIDE.pro +++ b/RedPandaIDE/RedPandaIDE.pro @@ -17,7 +17,7 @@ APP_NAME = RedPandaCPP APP_VERSION = 2.26 -TEST_VERSION = beta1 +TEST_VERSION = beta2 contains(QMAKE_HOST.arch, x86_64):{ DEFINES += ARCH_X86_64=1 } else: { diff --git a/RedPandaIDE/parser/cppparser.cpp b/RedPandaIDE/parser/cppparser.cpp index 964d44eb..14d1c2ce 100644 --- a/RedPandaIDE/parser/cppparser.cpp +++ b/RedPandaIDE/parser/cppparser.cpp @@ -5875,7 +5875,7 @@ PStatement CppParser::doParseEvalTypeInfo( } else if (token == ">") { templateLevel--; } - baseType += token; + templateParams += token; } syntaxer.next(); } diff --git a/Red_Panda_CPP.pro b/Red_Panda_CPP.pro index 6b5b6549..84d36729 100644 --- a/Red_Panda_CPP.pro +++ b/Red_Panda_CPP.pro @@ -23,7 +23,7 @@ APP_NAME = RedPandaCPP APP_VERSION = 2.26 -TEST_VERSION = beta1 +TEST_VERSION = beta2 win32: { SUBDIRS += \