- Fix: Function list is not correctly retrived for full-scoped functions

This commit is contained in:
Roy Qu 2024-02-20 14:45:12 +08:00
parent 2c26f9aaa1
commit 20339b3e9a
5 changed files with 4 additions and 5 deletions

View File

@ -45,6 +45,7 @@ Red Panda C++ Version 2.26
- Fix: Can't goto definition/declaration into files that not saved.
- Fix: Expression that starts with full scoped variables might be treated as var definition.
- Enhancement: Don't auto-indent in raw string.
- Fix: Function list is not correctly retrived for full-scoped functions.
Red Panda C++ Version 2.25

View File

@ -18,7 +18,7 @@ APP_NAME = RedPandaCPP
APP_VERSION = 2.26
# TEST_VERSION = beta2
TEST_VERSION = $$system(git rev-list HEAD --count)
system(git rev-list HEAD --count): TEST_VERSION = $$system(git rev-list HEAD --count)
contains(QMAKE_HOST.arch, x86_64):{
DEFINES += ARCH_X86_64=1

View File

@ -4358,7 +4358,7 @@ void Editor::updateFunctionTip(bool showTip)
QList<PStatement> statements=mParser->getListOfFunctions(mFilename,
s,
functionNamePos.line);
// qDebug()<<"finding function list:"<<s<<" - "<<statements.length();
foreach (const PStatement statement, statements) {
pMainWindow->functionTip()->addTip(
statement->command,

View File

@ -435,7 +435,7 @@ PStatement CppParser::doFindStatementOf(const QString &fileName,
}
}
if (!isSTLContainerFunctions)
typeStatement = doFindTypeDefinitionOf(fileName,statement->type, parentScopeType);
typeStatement = doFindTypeDefinitionOf(fileName,statement->type, statement->parentScope.lock());
//it's stl smart pointer
if ((typeStatement)

View File

@ -23,8 +23,6 @@ APP_NAME = RedPandaCPP
APP_VERSION = 2.26
TEST_VERSION = beta2
win32: {
SUBDIRS += \
redpanda-win-git-askpass