MCPcopy Create free account
hub / github.com/Kitware/CMake / entityTrackingReportStats

Function entityTrackingReportStats

Utilities/cmexpat/lib/xmlparse.c:8606–8628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8604}
8605
8606static void
8607entityTrackingReportStats(XML_Parser rootParser, ENTITY *entity,
8608 const char *action, int sourceLine) {
8609 assert(! rootParser->m_parentParser);
8610 if (rootParser->m_entity_stats.debugLevel == 0u)
8611 return;
8612
8613# if defined(XML_UNICODE)
8614 const char *const entityName = "[..]";
8615# else
8616 const char *const entityName = entity->name;
8617# endif
8618
8619 fprintf(
8620 stderr,
8621 "expat: Entities(%p): Count %9u, depth %2u/%2u %*s%s%s; %s length %d (xmlparse.c:%d)\n",
8622 (void *)rootParser, rootParser->m_entity_stats.countEverOpened,
8623 rootParser->m_entity_stats.currentDepth,
8624 rootParser->m_entity_stats.maximumDepthSeen,
8625 ((int)rootParser->m_entity_stats.currentDepth - 1) * 2, "",
8626 entity->is_param ? "%" : "&", entityName, action, entity->textLen,
8627 sourceLine);
8628}
8629
8630static void
8631entityTrackingOnOpen(XML_Parser originParser, ENTITY *entity, int sourceLine) {

Callers 2

entityTrackingOnOpenFunction · 0.85
entityTrackingOnCloseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…