MCPcopy Create free account
hub / github.com/beefytech/Beef / FindVisualizerForType

Method FindVisualizerForType

IDEHelper/WinDebugger.cpp:6547–6564  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6545}
6546
6547DebugVisualizerEntry* WinDebugger::FindVisualizerForType(DbgType* dbgType, Array<String>* wildcardCaptures)
6548{
6549 auto entry = mDebugManager->mDebugVisualizers->FindEntryForType(dbgType->ToString(DbgLanguage_Unknown, true), dbgType->mCompileUnit->mDbgModule->mDbgFlavor, wildcardCaptures);
6550
6551 if (entry == NULL)
6552 {
6553 dbgType = dbgType->GetPrimaryType();
6554 dbgType->PopulateType();
6555 for (auto baseTypeEntry : dbgType->mBaseTypes)
6556 {
6557 entry = FindVisualizerForType(baseTypeEntry->mBaseType, wildcardCaptures);
6558 if (entry != NULL)
6559 break;
6560 }
6561 }
6562
6563 return entry;
6564}
6565
6566#define GET_FROM(ptr, T) *((T*)(ptr += sizeof(T)) - 1)
6567

Callers 2

VisitMethod · 0.45

Calls 4

FindEntryForTypeMethod · 0.80
GetPrimaryTypeMethod · 0.80
ToStringMethod · 0.45
PopulateTypeMethod · 0.45

Tested by

no test coverage detected