summaryrefslogtreecommitdiffstats
path: root/Source/cmMessenger.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-07 20:18:17 (GMT)
committerBrad King <brad.king@kitware.com>2021-12-08 15:03:48 (GMT)
commit3d378541bb22f00e3a22bf5f12e97b7943a81294 (patch)
tree853fa2666199c276b677e28c6b9c15fce70481c9 /Source/cmMessenger.h
parent642238b3021ccb1923e57563bb61e0abb0111c84 (diff)
downloadCMake-3d378541bb22f00e3a22bf5f12e97b7943a81294.zip
CMake-3d378541bb22f00e3a22bf5f12e97b7943a81294.tar.gz
CMake-3d378541bb22f00e3a22bf5f12e97b7943a81294.tar.bz2
cmMessenger: Adopt backtrace printing functions
Move backtrace printing functions from `cmListFileBacktrace` over to `cmMessenger`, their primary caller. Thread `cmMessenger` instances through APIs needed to update other call sites.
Diffstat (limited to 'Source/cmMessenger.h')
-rw-r--r--Source/cmMessenger.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmMessenger.h b/Source/cmMessenger.h
index b6f5712..8287e70 100644
--- a/Source/cmMessenger.h
+++ b/Source/cmMessenger.h
@@ -4,6 +4,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
+#include <iosfwd>
#include <string>
#include "cmListFileCache.h"
@@ -47,6 +48,10 @@ public:
return this->DeprecatedWarningsAsErrors;
}
+ // Print the top of a backtrace.
+ void PrintBacktraceTitle(std::ostream& out,
+ cmListFileBacktrace const& bt) const;
+
private:
bool IsMessageTypeVisible(MessageType t) const;
MessageType ConvertMessageType(MessageType t) const;