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

Method ItemExcluded

Source/cmGraphVizWriter.cxx:473–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473bool cmGraphVizWriter::ItemExcluded(cmLinkItem const& item)
474{
475 auto const itemName = item.AsStr();
476
477 if (this->ItemNameFilteredOut(itemName)) {
478 return true;
479 }
480
481 if (!item.Target) {
482 return !this->GenerateForExternals;
483 }
484
485 if (item.Target->GetType() == cmStateEnums::UTILITY) {
486 if (cmHasLiteralPrefix(itemName, "Nightly") ||
487 cmHasLiteralPrefix(itemName, "Continuous") ||
488 cmHasLiteralPrefix(itemName, "Experimental")) {
489 return true;
490 }
491 }
492
493 if (item.Target->IsImported() && !this->GenerateForExternals) {
494 return true;
495 }
496
497 return !this->TargetTypeEnabled(item.Target->GetType());
498}
499
500bool cmGraphVizWriter::ItemNameFilteredOut(std::string const& itemName)
501{

Callers 3

OnItemMethod · 0.95
VisitLinkMethod · 0.95

Calls 5

ItemNameFilteredOutMethod · 0.95
TargetTypeEnabledMethod · 0.95
cmHasLiteralPrefixFunction · 0.85
GetTypeMethod · 0.45
IsImportedMethod · 0.45

Tested by

no test coverage detected