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

Method FormatListFileStack

Source/cmMakefile.cxx:3757–3777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3755}
3756
3757std::string cmMakefile::FormatListFileStack() const
3758{
3759 std::vector<std::string> listFiles;
3760 for (auto snp = this->StateSnapshot; snp.IsValid();
3761 snp = snp.GetCallStackParent()) {
3762 listFiles.emplace_back(snp.GetExecutionListFile());
3763 }
3764
3765 if (listFiles.empty()) {
3766 return {};
3767 }
3768
3769 auto depth = 1;
3770 std::transform(listFiles.begin(), listFiles.end(), listFiles.begin(),
3771 [&depth](std::string const& file) {
3772 return cmStrCat('[', depth++, "]\t", file);
3773 });
3774
3775 return cmJoinStrings(cmMakeRange(listFiles.rbegin(), listFiles.rend()),
3776 "\n "_s, {});
3777}
3778
3779void cmMakefile::PushScope()
3780{

Callers 2

cmakemainGetStackFunction · 0.80
DoNotRunExecutableMethod · 0.80

Calls 12

transformFunction · 0.85
cmJoinStringsFunction · 0.85
cmMakeRangeFunction · 0.85
GetCallStackParentMethod · 0.80
emplace_backMethod · 0.80
rbeginMethod · 0.80
rendMethod · 0.80
cmStrCatFunction · 0.70
IsValidMethod · 0.45
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected