- fix: static members are not correct showed after Classname + '::'

This commit is contained in:
Roy Qu 2022-01-25 16:11:16 +08:00
parent ca9006ff4f
commit 83a4277e68
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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: