- fix: Inherited class/struct members are not correctly shown in the completion suggestions.
This commit is contained in:
parent
377a379554
commit
bd768552c0
1
NEWS.md
1
NEWS.md
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue