diff --git a/NEWS.md b/NEWS.md index e3120af3..d2dd5eff 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,7 @@ Red Panda C++ Version 0.13.4 - fix: code completion popup won't show members of 'this' - fix: can't show private & protected members of 'this' - fix: function name like 'A::B' is not correctly parsed + - fix: static members are not correct showed after Classname + '::' Red Panda C++ Version 0.13.3 - enhancement: restore editor position after rename symbol diff --git a/RedPandaIDE/parser/cppparser.cpp b/RedPandaIDE/parser/cppparser.cpp index 8b7ffebd..f4db162a 100644 --- a/RedPandaIDE/parser/cppparser.cpp +++ b/RedPandaIDE/parser/cppparser.cpp @@ -3890,6 +3890,9 @@ PEvalStatement CppParser::doEvalTerm(const QString &fileName, } } pos++; + if (statement && statement->kind == StatementKind::skConstructor) { + statement = statement->parentScope.lock(); + } if (statement) { switch (statement->kind) { case StatementKind::skNamespace: