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

Function getMessageColor

Source/cmMessenger.cxx:49–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49cm::StdIo::TermAttr getMessageColor(MessageType t)
50{
51 switch (t) {
52 case MessageType::INTERNAL_ERROR:
53 case MessageType::FATAL_ERROR:
54 case MessageType::AUTHOR_ERROR:
55 return cm::StdIo::TermAttr::ForegroundRed;
56 case MessageType::AUTHOR_WARNING:
57 case MessageType::WARNING:
58 return cm::StdIo::TermAttr::ForegroundYellow;
59 default:
60 return cm::StdIo::TermAttr::Normal;
61 }
62}
63
64void printMessageText(std::ostream& msg, std::string const& text)
65{

Callers 1

displayMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…