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

Method ItemNameFilteredOut

Source/cmGraphVizWriter.cxx:500–520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500bool cmGraphVizWriter::ItemNameFilteredOut(std::string const& itemName)
501{
502 if (itemName == ">") {
503 // FIXME: why do we even receive such a target here?
504 return true;
505 }
506
507 if (cmGlobalGenerator::IsReservedTarget(itemName)) {
508 return true;
509 }
510
511 for (cmsys::RegularExpression& regEx : this->TargetsToIgnoreRegex) {
512 if (regEx.is_valid()) {
513 if (regEx.find(itemName)) {
514 return true;
515 }
516 }
517 }
518
519 return false;
520}
521
522bool cmGraphVizWriter::TargetTypeEnabled(
523 cmStateEnums::TargetType targetType) const

Callers 1

ItemExcludedMethod · 0.95

Calls 1

findMethod · 0.45

Tested by

no test coverage detected