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

Method IsMessageTypeVisible

Source/cmMessenger.cxx:170–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170bool 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
188void cmMessenger::IssueMessage(MessageType t, std::string const& text,
189 cmListFileBacktrace const& backtrace) const

Callers 1

IssueMessageMethod · 0.95

Tested by

no test coverage detected