pip_cmg now ignore streaming for members with PIMETA(id=-)

This commit is contained in:
2021-06-26 19:21:34 +03:00
parent a8d55abac1
commit e33aee3ddb
2 changed files with 4 additions and 1 deletions

View File

@@ -203,6 +203,7 @@ void writeClassStreamMembersOut(PIFile & f, const PICodeParser::Entity * e, int
piForeachC (PICodeParser::Member & m, ml) {
if (is_union && m.isBitfield())
continue;
if (m.meta.value("id") == "-") continue;
++cnt;
if (m.meta.contains("id"))
cnt = m.meta.value("id").toInt();
@@ -241,6 +242,7 @@ void writeClassStreamMembersIn(PIFile & f, const PICodeParser::Entity * e, int &
piForeachC (PICodeParser::Member & m, ml) {
if (is_union && m.isBitfield())
continue;
if (m.meta.value("id") == "-") continue;
++cnt;
if (m.meta.contains("id"))
cnt = m.meta.value("id").toInt();
@@ -278,6 +280,7 @@ bool needClassStream(const PICodeParser::Entity * e) {
piForeachC (PICodeParser::Member & m, e->members) {
if (m.is_type_ptr || m.isBitfield() || !m.dims.isEmpty() || (m.visibility != PICodeParser::Public))
continue;
if (m.meta.value("id") == "-") continue;
return true;
}
return false;