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

Method PrintBacktraceTitle

Source/cmMessenger.cxx:234–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234void cmMessenger::PrintBacktraceTitle(std::ostream& out,
235 cmListFileBacktrace const& bt) const
236{
237 // The title exists only if we have a call on top of the bottom.
238 if (bt.Empty()) {
239 return;
240 }
241 cmListFileContext lfc = bt.Top();
242 if (this->TopSource) {
243 lfc.FilePath =
244 cmSystemTools::RelativeIfUnder(*this->TopSource, lfc.FilePath);
245 }
246 out << (lfc.Line ? " at " : " in ") << lfc;
247}
248
249void cmMessenger::SetTopSource(cm::optional<std::string> topSource)
250{

Callers 3

DisplayMessageMethod · 0.95
AddCacheEntryMethod · 0.80

Calls 2

RelativeIfUnderFunction · 0.85
EmptyMethod · 0.80

Tested by

no test coverage detected