| 168 | } |
| 169 | |
| 170 | bool cmMessenger::IsMessageTypeVisible(MessageType t) const |
| 171 | { |
| 172 | if (t == MessageType::DEPRECATION_ERROR) { |
| 173 | return this->GetDeprecatedWarningsAsErrors(); |
| 174 | } |
| 175 | if (t == MessageType::DEPRECATION_WARNING) { |
| 176 | return !this->GetSuppressDeprecatedWarnings(); |
| 177 | } |
| 178 | if (t == MessageType::AUTHOR_ERROR) { |
| 179 | return this->GetDevWarningsAsErrors(); |
| 180 | } |
| 181 | if (t == MessageType::AUTHOR_WARNING) { |
| 182 | return !this->GetSuppressDevWarnings(); |
| 183 | } |
| 184 | |
| 185 | return true; |
| 186 | } |
| 187 | |
| 188 | void cmMessenger::IssueMessage(MessageType t, std::string const& text, |
| 189 | cmListFileBacktrace const& backtrace) const |
no test coverage detected