From 16a3c0ad7a6feff4945412b213069ca9c81b40f0 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Fri, 5 Apr 2024 21:38:18 +0800 Subject: [PATCH] fixes #330 : Don't show function prototype tip for function name that contains more than one namespace; --- NEWS.md | 2 ++ RedPandaIDE/parser/cppparser.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index f91e43c4..c059715d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -119,6 +119,8 @@ Red Panda C++ Version 2.27 - enhancement: Double click on breakpoint table's condition cell to modify it. - fix: Don't show function prototype tip for function name that contains namespace alias. - fix: Can't save changes in project options -> compiler set , after base compiler set was changed. + - fix: Project options -> file doesn't work. + - fix: Don't show function prototype tip for function name that contains more than one namespace; Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/RedPandaIDE/parser/cppparser.cpp b/RedPandaIDE/parser/cppparser.cpp index 0331e0a8..1b1f2ff0 100644 --- a/RedPandaIDE/parser/cppparser.cpp +++ b/RedPandaIDE/parser/cppparser.cpp @@ -181,7 +181,7 @@ QList CppParser::getListOfFunctions(const QString &fileName, const Q } else parentScope = statement->parentScope.lock(); if (parentScope && parentScope->kind == StatementKind::Namespace) { - PStatementList namespaceStatementsList = doFindNamespace(parentScope->command); + PStatementList namespaceStatementsList = doFindNamespace(parentScope->fullName); if (namespaceStatementsList) { for (PStatement& namespaceStatement : *namespaceStatementsList) { result.append(