| 471 | } |
| 472 | |
| 473 | bool 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 | |
| 500 | bool cmGraphVizWriter::ItemNameFilteredOut(std::string const& itemName) |
| 501 | { |
no test coverage detected