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

Function HasUniqueOutputs

Source/cmLocalNinjaGenerator.cxx:765–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763
764namespace {
765bool HasUniqueOutputs(std::vector<cmCustomCommandGenerator> const& ccgs)
766{
767 std::set<std::string> allOutputs;
768 std::set<std::string> allByproducts;
769 for (cmCustomCommandGenerator const& ccg : ccgs) {
770 for (std::string const& output : ccg.GetOutputs()) {
771 if (!allOutputs.insert(output).second) {
772 return false;
773 }
774 }
775 for (std::string const& byproduct : ccg.GetByproducts()) {
776 if (!allByproducts.insert(byproduct).second) {
777 return false;
778 }
779 }
780 }
781 return true;
782}
783}
784
785std::string cmLocalNinjaGenerator::CreateUtilityOutput(

Callers 1

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…