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

Method DeferGetCallIds

Source/cmMakefile.cxx:2544–2555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2542}
2543
2544cm::optional<std::string> cmMakefile::DeferGetCallIds() const
2545{
2546 cm::optional<std::string> ids;
2547 if (this->Defer) {
2548 ids = cmList::to_string(
2549 cmMakeRange(this->Defer->Commands)
2550 .filter([](DeferCommand const& dc) -> bool { return !dc.Id.empty(); })
2551 .transform(
2552 [](DeferCommand const& dc) -> std::string const& { return dc.Id; }));
2553 }
2554 return ids;
2555}
2556
2557cm::optional<std::string> cmMakefile::DeferGetCall(std::string const& id) const
2558{

Callers 1

Calls 5

to_stringFunction · 0.85
cmMakeRangeFunction · 0.85
transformMethod · 0.80
filterMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected