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

Method DisplaySideEffects

Source/cmComputeTargetDepends.cxx:534–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534void cmComputeTargetDepends::DisplaySideEffects()
535{
536 fprintf(stderr, "The side effects are:\n");
537 size_t n = this->SideEffects.size();
538 for (size_t depender_index = 0; depender_index < n; ++depender_index) {
539 cmGeneratorTarget const* depender = this->Targets[depender_index];
540 fprintf(stderr, "target %zu is [%s]\n", depender_index,
541 depender->GetName().c_str());
542 if (!this->SideEffects[depender_index].CustomCommandSideEffects.empty()) {
543 fprintf(stderr, " custom commands\n");
544 for (auto const* gt :
545 this->SideEffects[depender_index].CustomCommandSideEffects) {
546 fprintf(stderr, " from target %zu [%s]\n", this->TargetIndex[gt],
547 gt->GetName().c_str());
548 }
549 }
550 for (auto const& it :
551 this->SideEffects[depender_index].LanguageSideEffects) {
552 fprintf(stderr, " language %s\n", it.first.c_str());
553 for (auto const* gt : it.second) {
554 fprintf(stderr, " from target %zu [%s]\n", this->TargetIndex[gt],
555 gt->GetName().c_str());
556 }
557 }
558 }
559 fprintf(stderr, "\n");
560}
561
562void cmComputeTargetDepends::DisplayComponents(
563 cmComputeComponentGraph const& ccg, std::string const& name)

Callers 1

ComputeMethod · 0.95

Calls 4

c_strMethod · 0.80
sizeMethod · 0.45
GetNameMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected