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(