fixes #330 : Don't show function prototype tip for function name that contains more than one namespace;

This commit is contained in:
Roy Qu 2024-04-05 21:38:18 +08:00
parent c53a4ba910
commit 16a3c0ad7a
2 changed files with 3 additions and 1 deletions

View File

@ -119,6 +119,8 @@ Red Panda C++ Version 2.27
- enhancement: Double click on breakpoint table's condition cell to modify it. - 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: 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: 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 Red Panda C++ Version 2.26
- enhancement: Code suggestion for embedded std::vectors. - enhancement: Code suggestion for embedded std::vectors.

View File

@ -181,7 +181,7 @@ QList<PStatement> CppParser::getListOfFunctions(const QString &fileName, const Q
} else } else
parentScope = statement->parentScope.lock(); parentScope = statement->parentScope.lock();
if (parentScope && parentScope->kind == StatementKind::Namespace) { if (parentScope && parentScope->kind == StatementKind::Namespace) {
PStatementList namespaceStatementsList = doFindNamespace(parentScope->command); PStatementList namespaceStatementsList = doFindNamespace(parentScope->fullName);
if (namespaceStatementsList) { if (namespaceStatementsList) {
for (PStatement& namespaceStatement : *namespaceStatementsList) { for (PStatement& namespaceStatement : *namespaceStatementsList) {
result.append( result.append(