cmIncludeRegularExpressionCommand.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmIncludeRegularExpressionCommand_h
  4. #define cmIncludeRegularExpressionCommand_h
  5. #include "cmCommand.h"
  6. /** \class cmIncludeRegularExpressionCommand
  7. * \brief Set the regular expression for following #includes.
  8. *
  9. * cmIncludeRegularExpressionCommand is used to specify the regular expression
  10. * that determines whether to follow a #include file in dependency checking.
  11. */
  12. class cmIncludeRegularExpressionCommand : public cmCommand
  13. {
  14. public:
  15. /**
  16. * This is a virtual constructor for the command.
  17. */
  18. cmCommand* Clone() CM_OVERRIDE
  19. {
  20. return new cmIncludeRegularExpressionCommand;
  21. }
  22. /**
  23. * This is called when the command is first encountered in
  24. * the CMakeLists.txt file.
  25. */
  26. bool InitialPass(std::vector<std::string> const& args,
  27. cmExecutionStatus& status) CM_OVERRIDE;
  28. /**
  29. * The name of the command as specified in CMakeList.txt.
  30. */
  31. std::string GetName() const CM_OVERRIDE
  32. {
  33. return "include_regular_expression";
  34. }
  35. };
  36. #endif