cmIncludeRegularExpressionCommand.h 1.21 KB
Newer Older
1 2
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing for details.  */
3 4 5
#ifndef cmIncludeRegularExpressionCommand_h
#define cmIncludeRegularExpressionCommand_h

6
#include <cmConfigure.h>
7

8 9 10
#include <string>
#include <vector>

11 12
#include "cmCommand.h"

13 14
class cmExecutionStatus;

15 16 17 18
/** \class cmIncludeRegularExpressionCommand
 * \brief Set the regular expression for following #includes.
 *
 * cmIncludeRegularExpressionCommand is used to specify the regular expression
19
 * that determines whether to follow a #include file in dependency checking.
20 21 22 23 24 25 26
 */
class cmIncludeRegularExpressionCommand : public cmCommand
{
public:
  /**
   * This is a virtual constructor for the command.
   */
27 28 29 30
  cmCommand* Clone() CM_OVERRIDE
  {
    return new cmIncludeRegularExpressionCommand;
  }
31 32 33 34 35

  /**
   * This is called when the command is first encountered in
   * the CMakeLists.txt file.
   */
36 37
  bool InitialPass(std::vector<std::string> const& args,
                   cmExecutionStatus& status) CM_OVERRIDE;
38

39 40 41
  /**
   * The name of the command as specified in CMakeList.txt.
   */
42 43 44 45
  std::string GetName() const CM_OVERRIDE
  {
    return "include_regular_expression";
  }
46 47 48
};

#endif