Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Remove member fields from graphviz output
Browse files Browse the repository at this point in the history
  • Loading branch information
emesare committed Nov 14, 2023
1 parent 5e94037 commit 005e3cd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,15 +236,9 @@ void GenerateConstructorGraphViz(BinaryView* view)
continue;
}

auto classTypeStruct = view->GetTypeById(classNamedType->GetNamedTypeReference()->GetTypeId())->GetStructure();
for (auto classMember : classTypeStruct->GetMembersIncludingInherited(view->GetTypeContainer()))
{
// TODO: Handle inherited by adding an arrow to the real struct i guess? (use ports?)
out << "|{0x" << IntToHex(classMember.member.offset) << "|" << classMember.member.name << "}";
}

out << "}\"];\n";

auto classTypeStruct = view->GetTypeById(classNamedType->GetNamedTypeReference()->GetTypeId())->GetStructure();
for (auto baseStruct : classTypeStruct->GetBaseStructures())
{
out << '"' << className << "\"->\"" << baseStruct.type->GetName().GetString() << "\";\n";
Expand Down

0 comments on commit 005e3cd

Please sign in to comment.