Revision ead16adfc8dc387a59057717521976cbe7ae9067 authored by Brad King on 20 November 2018, 19:07:03 UTC, committed by Brad King on 20 November 2018, 19:16:26 UTC
The lexical token expression added by commit v3.7.0-rc1~73^2~1 (Fortran:
Add support for submodule syntax in dependency scanning, 2016-09-05)
has a typo and does not match upper-case `B` in `SUBMODULE`.  Fix it.

Fixes: #18595
1 parent 05a2ca7
Raw File
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
back to top