swh:1:snp:a6330e89b35f0959a588079a2c4dc65f44d6e08a
Tip revision: f15cfd891d1e01247ed285320ae32b6c3182ac8f authored by Brad King on 18 July 2017, 15:18:18 UTC
CMake 3.9.0
CMake 3.9.0
Tip revision: f15cfd8
cmMessenger.h
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#ifndef cmMessenger_h
#define cmMessenger_h
#include "cmConfigure.h" // IWYU pragma: keep
#include "cmListFileCache.h"
#include "cmake.h"
#include <string>
class cmState;
class cmMessenger
{
public:
cmMessenger(cmState* state);
void IssueMessage(
cmake::MessageType t, std::string const& text,
cmListFileBacktrace const& backtrace = cmListFileBacktrace()) const;
void DisplayMessage(cmake::MessageType t, std::string const& text,
cmListFileBacktrace const& backtrace) const;
bool GetSuppressDevWarnings() const;
bool GetSuppressDeprecatedWarnings() const;
bool GetDevWarningsAsErrors() const;
bool GetDeprecatedWarningsAsErrors() const;
private:
bool IsMessageTypeVisible(cmake::MessageType t) const;
cmake::MessageType ConvertMessageType(cmake::MessageType t) const;
cmState* State;
};
#endif