- fix: Inherited class/struct members are not correctly shown in the completion suggestions.

This commit is contained in:
Roy Qu 2023-07-04 20:10:08 +08:00
parent 377a379554
commit bd768552c0
2 changed files with 5 additions and 1 deletions

View File

@ -26,6 +26,7 @@ Red Panda C++ Version 2.23
- fix: Replace panel should be hidden after finding occurrencies.
- enhancement: Show code completion suggestion after "typedef" and "const".
- fix: GLFW project template.
- fix: Inherited class/struct members are not correctly shown in the completion suggestions.
Red Panda C++ Version 2.22

View File

@ -1263,7 +1263,7 @@ PStatement CppParser::addInheritedStatement(const PStatement& derived, const PSt
inherit->kind,
inherit->scope,
access,
inherit->properties & StatementProperty::spInherited);
inherit->properties | StatementProperty::spInherited);
return statement;
}
@ -1386,6 +1386,9 @@ PStatement CppParser::addStatement(const PStatement& parent,
fileIncludes->statements.insert(result->fullName,result);
}
}
// if (result->command=="sync_with_stdio") {
// qDebug()<<result->fullName<<result->isStatic()<<(int)result->accessibility;
// }
return result;
}