- fix: can't show private & protected members of 'this'
- fix: function name like 'A::B' is not correctly parsed
This commit is contained in:
parent
7112d68a14
commit
ca9006ff4f
2
NEWS.md
2
NEWS.md
|
@ -2,6 +2,8 @@ Red Panda C++ Version 0.13.4
|
||||||
- fix: when copy comments, don't auto indent
|
- fix: when copy comments, don't auto indent
|
||||||
- enhancement: auto add a new line when press enter between '/*' and '*/'
|
- enhancement: auto add a new line when press enter between '/*' and '*/'
|
||||||
- fix: code completion popup won't show members of 'this'
|
- 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
|
Red Panda C++ Version 0.13.3
|
||||||
- enhancement: restore editor position after rename symbol
|
- enhancement: restore editor position after rename symbol
|
||||||
|
|
|
@ -2162,7 +2162,7 @@ void CppParser::handleMethod(const QString &sType, const QString &sName, const Q
|
||||||
QString parentClassName;
|
QString parentClassName;
|
||||||
if (delimPos >= 0) {
|
if (delimPos >= 0) {
|
||||||
// Provide Bar instead of Foo::Bar
|
// Provide Bar instead of Foo::Bar
|
||||||
scopelessName = sName.mid(delimPos);
|
scopelessName = sName.mid(delimPos+2);
|
||||||
|
|
||||||
// Check what class this function belongs to
|
// Check what class this function belongs to
|
||||||
parentClassName = sName.mid(0, delimPos);
|
parentClassName = sName.mid(0, delimPos);
|
||||||
|
|
|
@ -513,9 +513,8 @@ bool isScopeTypeKind(StatementKind kind)
|
||||||
switch(kind) {
|
switch(kind) {
|
||||||
case StatementKind::skClass:
|
case StatementKind::skClass:
|
||||||
case StatementKind::skNamespace:
|
case StatementKind::skNamespace:
|
||||||
case StatementKind::skFunction:
|
case StatementKind::skEnumType:
|
||||||
case StatementKind::skConstructor:
|
case StatementKind::skEnumClassType:
|
||||||
case StatementKind::skDestructor:
|
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue