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

Method WriteBacktrace

Source/cmConfigureLog.cxx:66–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void cmConfigureLog::WriteBacktrace(cmMakefile const& mf)
67{
68 std::vector<std::string> backtrace;
69 auto root = mf.GetCMakeInstance()->GetHomeDirectory();
70 for (auto bt = mf.GetBacktrace(); !bt.Empty(); bt = bt.Pop()) {
71 auto t = bt.Top();
72 if (!t.Name.empty() || t.Line == cmListFileContext::DeferPlaceholderLine) {
73 t.FilePath = cmSystemTools::RelativeIfUnder(root, t.FilePath);
74 std::ostringstream s;
75 s << t;
76 backtrace.emplace_back(s.str());
77 }
78 }
79 this->WriteValue("backtrace"_s, backtrace);
80}
81
82void cmConfigureLog::WriteChecks(cmMakefile const& mf)
83{

Callers 1

BeginEventMethod · 0.95

Calls 9

WriteValueMethod · 0.95
RelativeIfUnderFunction · 0.85
EmptyMethod · 0.80
emplace_backMethod · 0.80
strMethod · 0.80
GetCMakeInstanceMethod · 0.45
GetBacktraceMethod · 0.45
PopMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected