- fix: can't show private & protected members of 'this'

- fix: function name like 'A::B' is not correctly parsed
This commit is contained in:
Roy Qu 2022-01-25 13:53:55 +08:00
parent 7112d68a14
commit ca9006ff4f
3 changed files with 5 additions and 4 deletions

View File

@ -2,6 +2,8 @@ Red Panda C++ Version 0.13.4
- fix: when copy comments, don't auto indent
- enhancement: auto add a new line when press enter between '/*' and '*/'
- 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
Red Panda C++ Version 0.13.3
- enhancement: restore editor position after rename symbol

View File

@ -2162,7 +2162,7 @@ void CppParser::handleMethod(const QString &sType, const QString &sName, const Q
QString parentClassName;
if (delimPos >= 0) {
// Provide Bar instead of Foo::Bar
scopelessName = sName.mid(delimPos);
scopelessName = sName.mid(delimPos+2);
// Check what class this function belongs to
parentClassName = sName.mid(0, delimPos);

View File

@ -513,9 +513,8 @@ bool isScopeTypeKind(StatementKind kind)
switch(kind) {
case StatementKind::skClass:
case StatementKind::skNamespace:
case StatementKind::skFunction:
case StatementKind::skConstructor:
case StatementKind::skDestructor:
case StatementKind::skEnumType:
case StatementKind::skEnumClassType:
return true;
default:
return false;